Skip to content

Glossary

proptastic uses a small set of words, the same in every edition and in everything it prints. Each is here in a sentence, with the page that explains it.

Budget. The most time a property may spend trying, set with PROPTASTIC_BUDGET. Profiles and budgets

Check. The rule a property asserts for each input, in .check(…); also what a run does with each input. What a property is

Choice. A whole number a domain draws and turns into a value; choice 0 is the simplest value. Domains and choices

Classify. Counting how often a condition held over a run’s tries, with classify(…). Classify and require

Contract. The file every edition’s tests check its words, output and files against, so the editions agree. Editions

Corpus. Inputs kept from earlier counterexamples, run before a property’s random tries. The corpus

Counterexample. An input proptastic found that breaks a property: the one a failure prints, saves and gives an id. Counterexamples and ids

Domain. What a property draws its inputs from: integers(), lists(strings()), a record. Domains

Edge. A value at the end of what a domain draws, 0, the largest, the empty list, which a random try leans toward. How values are drawn

Edition. proptastic in one language: Java, Rust or Swift. Editions

Example. An input you chose to keep, with .example(…), which runs first, every time. Reading a failure

First steps. Steps a try of .threads(n) takes on one thread before the threads start, which set up what they share; a pin writes them first(…). Steps before the threads

Handle. A value a step made that later steps use, such as an opened account, printed account1 and pinned account(1). Stateful testing

Health check. A check a run makes on its first draws, before its tries are spent: a filter that rejects too much, inputs too large, drawing too slow. Health checks

Id. A counterexample’s name, c and 8 hex digits, the same on every machine. Counterexamples and ids

Incomplete. A require share the tries couldn’t tell either way, even at 64 times the tries: reported on a pass, a failure with PROPTASTIC_INCOMPLETE=fail. Classify and require

Invariant. A rule a stateful test checks after every step.

Model. A simpler version of what the code does, which a property checks the code against. Follow a model

Pin. To keep a counterexample as an example, with the pin it line a failure prints. Reading a failure

Preemption. One thread stopped between two steps so another runs, in a schedule. Concurrency

Profile. How much a run spends: local, pr or nightly. Profiles and budgets

Property. A rule that should hold for every input of a kind, and the test that checks it. What a property is

Require. Asking that a case come up in a share of tries, with require(…), failing the run when it’s surely rarer, and saying it’s incomplete when the tries can’t tell. Classify and require

Schedule. One order of the threads’ steps and the switches between them. Concurrency

Seed. The number every random choice in a run comes from, so a run can be repeated. Seeds and replay

Shrink. To make a failing input smaller while it still fails the same way. Shrinking

Spec. A design written in TLA+, which a property can check the code follows. From design to code

Stale. A corpus entry whose domains have changed since it was found, so its choices make a different input. The corpus

Step. One call a stateful test makes on the code, drawn from the steps you name.

Switch point. A place one thread can stop and another run: between steps, at a lock, or with the agent, inside the code. Races in plain code

Target. A score a try gives, with target(…), which the run climbs toward. Targeted tries

Test first. Writing the property before the code, so each failure’s shrunk counterexample says what to build next, and pinning it. Test first with properties

TLC traces. How a property follows a spec too big for a graph: TLC judges every step the runs took. The counter in TLA+

Try. One input drawn and checked. How a run works

Privacy