KEMBAR78
Explicit tests · Issue #5346 · microsoft/testfx · GitHub
Skip to content

Explicit tests #5346

@hakenr

Description

@hakenr

Summary

Allow marking a test or test class to be ignored unless it is explicitly selected for running, i.e. such test(s) won't be executed when using Run All Tests but will execute when selected for individual run.
Similar to NUnit's [Explicit] attribute: https://docs.nunit.org/articles/nunit/writing-tests/attributes/explicit.html

Background and Motivation

Some tests are meant only to be used by developers on development box to help with debugging or other code simulations.
Currently, we mark these as [Ignored] and enable them only as needed. Unfortunately, this leads to many accidental situations where the test is left un-ignored and committed to the repository.

Proposed Feature

Adding an [Explicit] attribute known from other test frameworks might be a good fit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: MSTestIssues with MSTest that are not specific to more refined area (e.g. analyzers or assertions)Needs: DesignNeeds research and proposal for how the feature will be implemented.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions