Skip to content

Mark skipped tests as skipped instead of passing #736

Closed

Description

@dsplaisted

For tests that only run on Windows, or that are conditionally disabled for other reasons, we currently return from the beginning of the test method if we aren't running on Windows. This means the tests are marked as passing by xUnit and it's not as easy to find all the skipped tests.

As suggested by @tannergooding, it would be better to actually mark these tests as skipped. There's a sample of how to do this here: https://github.com/xunit/samples.xunit/tree/master/DynamicSkipExample

Activity

  1. added this to the 1.1 milestone on Jan 26, 2017
  2. modified the milestones: , 1.1 on May 15, 2017
  3. dsplaisted commented on May 15, 2017

    @dsplaisted
    MemberAuthor

    We've done this for some tests with attributes such as CoreMSBuildOnlyFactAttribute.

  4. modified the milestones: 2.0.0, 2.1.0 on May 27, 2017
  5. modified the milestones: 2.1.3xx, 2.1.4xx on Mar 30, 2018
  6. modified the milestones: 2.1.4xx, 2.2.1xx on Jun 27, 2018
  7. modified the milestones: 2.2.1xx, 3.0.1xx on Jun 12, 2019
  8. Repository owner unassigned on Dec 23, 2019
  9. added theissue type on Aug 12, 2026
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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions