CheckConfig Module
Helpers for building FsCheck configurations used by Testify.Check.
Start with defaultConfig or thorough, then refine the FsCheck run with helpers such
as withMaxTest, withEndSize, or replay-specific helpers.
Types
| Type | Description |
|
Registers a generator for |
|
|
A tiny natural-number wrapper useful for compact demos and targeted generators. |
|
|
Registers a generator for |
Functions and values
| Function or value |
Description
|
|
|
|
The neutral FsCheck configuration used by Testify property checks before any installed transformers are applied.
Example
val config: obj
|
Full Usage:
CheckConfig.from
Returns: Arbitrary<'T>
The resolved arbitrary for 'T from CheckConfig.defaultConfig.
|
Looks up the arbitrary for a type from the neutral
|
|
|
|
A slower but more exhaustive neutral configuration with a larger test count.
Example
val config: obj
|
Full Usage:
CheckConfig.tryParseReplay text
Parameters:
string
-
The replay token string, typically copied from a failing CheckFailure.
Returns: Replay option
Some replay value when text matches Testify's replay format;
otherwise None.
|
Parses a replay token emitted by Testify into an FsCheck replay value.
|
Full Usage:
CheckConfig.withEndSize size
Parameters:
int
-
The maximum generated size that FsCheck should use.
Returns: Config
A new configuration with the supplied end-size limit.
|
Creates a neutral configuration with the supplied maximum generated size.
|
Full Usage:
CheckConfig.withMaxTest count
Parameters:
int
-
The maximum number of generated test cases FsCheck should try.
Returns: Config
A new configuration with the supplied test-count limit.
|
Creates a neutral configuration with the supplied maximum number of tests.
Example
val config: obj
|
|
|
Full Usage:
CheckConfig.withReplayString text
Parameters:
string
-
The replay token string emitted by a previous failing property check.
Returns: Config option
Some replay-enabled configuration when parsing succeeds; otherwise None.
|
Parses a replay token and returns a replay-enabled configuration when successful.
Example
val config: obj
|
testify