Class PropertyAttribute
- Namespace
- Conjecture.Xunit
- Assembly
- Conjecture.Xunit.dll
Marks a method as a Conjecture property-based test.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
[XunitTestCaseDiscoverer("Conjecture.Xunit.Internal.PropertyTestCaseDiscoverer", "Conjecture.Xunit")]
public sealed class PropertyAttribute : FactAttribute
- Inheritance
-
FactAttributePropertyAttribute
- Inherited Members
-
FactAttribute.DisplayNameFactAttribute.SkipFactAttribute.Timeout
Properties
DeadlineMs
Deadline for each test run in milliseconds. 0 means no deadline.
public int DeadlineMs { get; set; }
Property Value
ExportReproOnFailure
Whether to export a reproduction file on test failure. Defaults to false.
public bool ExportReproOnFailure { get; set; }
Property Value
MaxExamples
Maximum number of examples to generate. Defaults to 100.
public int MaxExamples { get; set; }
Property Value
MaxStrategyRejections
Maximum number of times a strategy may reject a value. Defaults to 5.
public int MaxStrategyRejections { get; set; }
Property Value
ReproOutputPath
Output path for exported reproduction files. Defaults to .conjecture/repros/.
public string ReproOutputPath { get; set; }
Property Value
Seed
Optional fixed seed for deterministic runs. 0 means use a random seed.
public ulong Seed { get; set; }
Property Value
Targeting
Whether to run a targeting phase after generation. Defaults to true.
public bool Targeting { get; set; }
Property Value
TargetingProportion
Fraction of MaxExamples budget allocated to the targeting phase. Defaults to 0.5.
public double TargetingProportion { get; set; }
Property Value
UseDatabase
Whether to use the example database. Defaults to true.
public bool UseDatabase { get; set; }