Derive the seed from the test’s database key, so every run of the test is the same.
database
The directory for saved failures; None disables the database.
database_key
The test’s key in the database. Filled in from the test’s source location when empty.
phases
Which phases of the run are enabled; see Phases.
verbosity
How much to print; see Verbosity.
report_multiple_bugs
Report every distinct failure found, rather than just one.
suppress_health_check
Health checks not to run.
stateful_step_count
The maximum number of steps in a state machine program.
max_shrinks
Stop shrinking after this many successful shrinks.
print_blob
Include a reproduce= blob in failure reports.
deadline
Fail a test case whose body (not counting data generation) takes longer than this many milliseconds. None disables it. In stateful tests it applies to each step.
reproduce
A blob from a failure report: replay exactly that test case, without searching or shrinking (Hypothesis’s @reproduce_failure).
show_statistics
Print the run’s statistics: events, tables, and coverage.
fork
Run each test case in a child process, so that a crash (a segfault, an abort, a sanitizer report) fails the test case and is shrunk instead of ending the run. See Test code that crashes.
timeout
Kill a test case that runs longer than this many milliseconds, and fail it with Timeout. Implies fork.
check_coverage
Check cover requirements statistically, generating past max_examples until they’re settled, and fail if one isn’t met (QuickCheck’s checkCoverage).
Settings that a test leaves at their defaults can be changed from the
environment, like a Hypothesis settings profile. A value set in the code
always wins.
Variable
Setting
Values
PROPTEST_MAX_EXAMPLES
max_examples
an integer
PROPTEST_SEED
seed
an integer
PROPTEST_VERBOSITY
verbosity
quiet, normal, verbose, debug
PROPTEST_DATABASE
database
a directory, or none
PROPTEST_FORK
fork
1 or true
PROPTEST_TIMEOUT
timeout
milliseconds
settings.with_env_overrides() returns the settings with these applied;
the test runners call it for you.
How sure a coverage check must be (QuickCheck’s Confidence). A
requirement of p% passes once proptest is confident the true share is at
least tolerance × p%, and fails once it is confident the share is below
p%. Each conclusion is wrong with probability about 1 / certainty.