Skip to content

Add CIConditionAttribute #5533

Description

Summary

Consider adding a CIConditionAttribute (or ContinuousIntegrationConditionAttribute) that handles commonly known CI systems to allow the user to run a test only in CI, or exclude a test only in CI.

Background and Motivation

In some cases, a test could be flaky only in CI and temporarily disabled only in CI. Having this attribute out of the box makes it easier for MSTest users to handle this.

Proposed Feature

public sealed class CIConditionAttribute : ConditionBaseAttribute
{
    public CIConditionAttribute(ConditionMode mode);
}

This should handle GitHub Actions, Azure Pipelines, AppVeyor, Travis, CircleCI, Jenkins, ...

Alternative Designs

Activity

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

Metadata

Metadata

Assignees

Labels

area/mstestMSTest framework (not analyzers or assertions).

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions