Skip to content

Add --filter-tests to strip out successful or skipped tests#58

Open
danudey wants to merge 1 commit into
inorton:masterfrom
danudey:add-skipped-passed-test-filters
Open

Add --filter-tests to strip out successful or skipped tests#58
danudey wants to merge 1 commit into
inorton:masterfrom
danudey:add-skipped-passed-test-filters

Conversation

@danudey
Copy link
Copy Markdown

@danudey danudey commented May 29, 2026

This PR adds a new command-line parameter: --filter-tests. This parameter is intended to exclude any tests from the final report which do not match the condition given. It defaults to not doing any filtering. Possible filters:

  • skipped: don't include skipped tests
  • succeeded: don't include tests which succeeded
  • both: don't include skipped or succeeded tests

The primary use case for this is generating HTML reports for very large test suites with very few failures. In one instance, a 32 MB report.xml file contained only a single failing test which I wanted to send to a developer so that they could review the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant