Expand description
State and functions for running proptest tests.
You do not normally need to access things in this module directly except when implementing new low-level strategies.
Structs§
- Config
- Configuration for how a proptest test should be run.
- MapFailure
Persistence - Failure persistence option that loads and saves seeds in memory
on the heap. This may be useful when accumulating test failures
across multiple
TestRunner
instances for external reporting or batched persistence. - Persisted
Seed - Opaque struct representing a seed which can be persisted.
- Reason
- The reason for why something, such as a generated value, was rejected.
- Result
Cache Key - A key used for the result cache.
- TestRng
- Proptest’s random number generator.
- Test
Runner - State used when running a proptest test.
Enums§
- File
Failure Persistence std
- Describes how failing test cases are persisted.
- RngAlgorithm
- Identifies a particular RNG algorithm supported by proptest.
- Test
Case Error - Errors which can be returned from test cases to indicate non-successful completion.
- Test
Error - A failure state from running test cases for a single test.
Constants§
- INFO_
LOG - Verbose level 1 to show failures. In state machine tests this level is used to print transitions.
Traits§
- Failure
Persistence - Provides external persistence for historical test failures by storing seeds.
- Result
Cache - An object which can cache the outcomes of tests.
Functions§
- basic_
result_ cache std
- A basic result cache.
- contextualize_
config - Override the config fields from environment variables, if any are set.
Without the
std
feature this function returns config unchanged. - noop_
result_ cache - A result cache that does nothing.
Type Aliases§
- Test
Case Result - Convenience for the type returned by test cases.