Open
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, ...