<PackageReference Include="NUnit" Version="5.0.0-beta.1" />

NUnit.Framework.RepeatAttribute

Specifies that a test should be run multiple times.

The test command for the RepeatAttribute

public int RequiredPassPercentage { get; set; }

The minimum percentage of runs that must pass for the test to succeed. Valid range is 1–100. Default is 100 (all runs must pass). When set below 100, StopOnFailure is ignored and all runs always execute.

public bool StopOnFailure { get; set; }

Whether to stop when a test is not successful or not

public bool StopWhenOverallResultDetermined { get; set; }

When true and RequiredPassPercentage is below 100, stops iterating as soon as the final outcome is determined — either because the pass threshold is already guaranteed, or because it is no longer achievable. Has no effect when RequiredPassPercentage is 100.

public RepeatAttribute(int count)

Construct a RepeatAttribute

public RepeatAttribute(int count, bool stopOnFailure)

Construct a RepeatAttribute

public TestCommand Wrap(TestCommand command)

Wrap a command and return the result.