matplotlib / matplotlib/pytest-mpl

Allow HTML summary to only show failed tests.

Open
#237 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
272
Forks
53
PR merge metrics
No merged PRs in 30d

Description

The docs state

Summary reports can also be produced when generating baseline images and hash libraries. The summaries will be written to the results directory. When generating a HTML summary, the --mpl-results-always option is automatically applied. Therefore images for passing tests will also be shown.

However, I believe it would be beneficial to extend the option to only show failed tests. Is this already possible or could this be added to the pytest-mpl?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the HTML summary behavior described in the configuration documentation and the --mpl-results-always option. Trace how the results directory and generated summaries decide which test images to show. Done means an HTML summary can be configured to show only failed tests while retaining the existing behavior by default.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.