Class ConjectureSettings
- Namespace
- Conjecture.Core
- Assembly
- Conjecture.Core.dll
Immutable configuration settings for a Conjecture property test.
public record ConjectureSettings : IEquatable<ConjectureSettings>
- Inheritance
-
ConjectureSettings
- Implements
- Inherited Members
Properties
DatabasePath
Path to the example database directory. Defaults to .conjecture/examples/.
public string DatabasePath { get; init; }
Property Value
Deadline
Optional deadline for each test run. When null no deadline is enforced.
public TimeSpan? Deadline { get; init; }
Property Value
ExportReproOnFailure
Whether to export a reproduction file on test failure. Defaults to false.
public bool ExportReproOnFailure { get; init; }
Property Value
Logger
Logger for structured test-run output. Defaults to Instance.
public ILogger Logger { get; init; }
Property Value
MaxExamples
Maximum number of examples to generate. Must be greater than 0. Defaults to 100.
public int MaxExamples { get; init; }
Property Value
MaxStrategyRejections
Maximum number of times a strategy may reject a value. Must be non-negative. Defaults to 5.
public int MaxStrategyRejections { get; init; }
Property Value
MaxUnsatisfiedRatio
Maximum ratio of unsatisfied assumptions. Must be non-negative. Defaults to 200.
public int MaxUnsatisfiedRatio { get; init; }
Property Value
ReproOutputPath
Output path for exported reproduction files. Defaults to .conjecture/repros/.
public string ReproOutputPath { get; init; }
Property Value
Seed
Optional fixed seed for the PRNG. When null a random seed is used.
public ulong? Seed { get; init; }
Property Value
Targeting
Whether to run a targeting phase after generation. Defaults to true.
public bool Targeting { get; init; }
Property Value
TargetingProportion
Fraction of MaxExamples budget allocated to the targeting phase. Must be in [0.0, 1.0). Defaults to 0.5.
public double TargetingProportion { get; init; }
Property Value
UseDatabase
Whether to use the example database. Defaults to true.
public bool UseDatabase { get; init; }