Docs · API reference · Motus.Abstractions

QuarantineAttribute Class#

Marks a test (or every test in a class) as quarantined. A quarantined test still runs, but its failures do not fail the run: it is reported in a separate bucket and excluded from the exit code. Use this to keep a known-flaky test running and visible while it is being stabilized, instead of deleting or skipping it.

public sealed class QuarantineAttribute : System.Attribute

Inheritance System.Object → System.Attribute → QuarantineAttribute

Properties#

Reason Property#

Optional reason describing why the test is quarantined.

public string? Reason { get; set; }

Property Value#

System.String