Skip to content

Feature request: add ability to blacklist tests based on tag #2064

Closed

Description

It's often useful to "blacklist" tests, i.e. not execute them but still have them show up in the report (e.g. as "not run") so they don't fall through the cracks. Using --exclude doesn't work, because that hides the excluded tests from the report altogether. The most common workaround seems to be to mark the test as noncritical and make it fail using the "Fail" keyword, but that's not ideal and ambiguous... a failing noncritical test isn't the same as a blacklisted test.

This is somewhat similar to issue #812 (request for a "Skip" keyword), but I believe what I'm asking for is simpler. What's needed isn't a new keyword, but simply a command line option similar to --exclude, let's say --blacklist , which skips the affected tests and makes a note of that in the report.

Thanks!

Activity

  1. pekkaklarck commented on Jul 16, 2015

    @pekkaklarck
    Member

    Could you clarify how would blacklisting be different than skipping? For me they look exactly the same, and I'd definitely use the more common "skip" term.

    Notice that the problem with skipping isn't adding a new keyword or command line option but rather how to present these tests in logs and reports, how they affect statistics, etc. For me the current pass/fail status and critical/non-critical separation has been enough, and I don't consider skipping that important. If someone is interested to design how it would work and also implement, test and document it, I won't have problems accepting the feature and merging a pull request.

  2. pekkaklarck commented on Aug 5, 2015

    @pekkaklarck
    Member

    OK, backlisting is just a different term for skip. I opened a separate issue about possible new SKIP status. Let's continue discussion there.

    Changing how --exclude works is not an option.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions