Files a run leaves
A run leaves files behind: some to read, some for the next run, one to commit. Knowing which is
which tells you what to put in .gitignore, what to keep between CI runs, and what’s safe to
delete.
| File | Where | Keep it? |
|---|---|---|
The manifest, properties.json |
the build directory | no: each run writes it again |
Events, events/ |
the build directory | no: each run writes them again |
Counterexamples, counterexamples/ |
the build directory | no: deleted once a property passes |
The corpus, .proptastic/corpus/ |
the project | a cache: keep it between CI runs, or not |
Proposals, .proptastic/proposals.yaml |
the project | commit it |
The report, report/ |
the build directory | no: the proptastic command writes it each run |
A search’s kept inputs, .proptastic/fuzz/ |
the project | a cache: keep it between searches, or not |
.proptastic/.gitignore |
the project | commit it: it keeps fuzz/ out |
An input that hung, fuzz/hang-… |
the build directory | while you look into the hang |
The build directory is build/proptastic/ under Gradle and target/proptastic/ under Maven, or
wherever PROPTASTIC_DIR says. A clean deletes all of it, and nothing there is lost that a run
can’t make again, but for a counterexample a fix hasn’t checked yet.
So your .gitignore needs nothing for the build directory, which your build’s ignore already
covers. The first time proptastic makes .proptastic/, it writes a .gitignore of its own
there, so a search’s kept inputs aren’t committed by accident:
# Written by proptastic when it made this folder. It's yours: edit or delete it.# fuzz/ holds the inputs a search kept to start the next one from: a cache.# The corpus and proposals.yaml are meant to be seen by git.fuzz/It’s written once, when the folder is made, and never again: change it or delete it and proptastic
leaves it as you left it. Add corpus/ to it if you’d rather not commit the corpus. Commit
.proptastic/proposals.yaml: it’s the examples waiting for a person to accept them.
The manifest
Section titled “The manifest”properties.json lists every property the run found, with where it is and how it was run, for
the proptastic command and mutastic to read. The bank’s property, as one run wrote it:
{ "schema" : "proptastic.manifest/v1", "edition" : "java", "properties" : [ { "id" : "bank.BankAccountTest#aTransferWithAFeeKeepsTheTotal()", "class" : "bank.BankAccountTest", "method" : "aTransferWithAFeeKeepsTheTotal", "signature" : "aTransferWithAFeeKeepsTheTotal()", "key" : "bank.BankAccountTest#aTransferWithAFeeKeepsTheTotal()", "domains" : "longs[0,1000000],longs[0,1000000],longs[1,1000000]", "seed" : "0x4f1c2a9e7b3d5f60", "seeded" : "setting", "tries" : 100, "budget" : null, "profile" : "local", "at" : { "path" : "bank/BankAccountTest.java", "line" : 67 }, "task" : "test" } ]}Schemas says what each field means.
Events
Section titled “Events”Each property’s last outcome, one JSON object a line, in events/, in a file named as its
counterexample’s is. A tool reads these rather than parsing what a failure
prints. The bank’s failure, laid out over lines:
{ "schema" : "proptastic.events/v1", "edition" : "java", "reason" : "property-failed", "property" : "BankAccountTest#aTransferWithAFeeKeepsTheTotal", "run" : "d5955a8ef231c44d", "started" : "2026-12-03T07:13:14.345Z", "id" : "c8f0ad315", "tries" : 2, "discarded" : 0, "shrinkSteps" : 27, "fromCorpus" : false, "seed" : "0x4f1c2a9e7b3d5f60", "shrunk" : true, "flaky" : false, "counterexample" : { "text" : "aliceHas = 50, bobHas = 0, amount = 50", "values" : [ { "name" : "aliceHas", "text" : "50" }, { "name" : "bobHas", "text" : "0" }, { "name" : "amount", "text" : "50" } ] }, "pin" : ".example(/* aliceHas */ 50L, /* bobHas */ 0L, /* amount */ 50L)", "failsForAny" : [ "bobHas" ], "rerun" : "PROPTASTIC_SEED=0x4f1c2a9e7b3d5f60 ./gradlew test --tests 'BankAccountTest.aTransferWithAFeeKeepsTheTotal'", "assertion" : "expected: <50> but was: <51>", "location" : { "path" : "bank/BankAccountTest.java", "line" : 77 }, "statistics" : { }, "durationMs" : 60, "rendered" : "aTransferWithAFeeKeepsTheTotal failed after 2 tries (seed 0x4f1c2a9e7b3d5f60)\n shrunk counterexample:\n aliceHas = 50, bobHas = 0, amount = 50\n fails for any:\n bobHas\n pin it:\n .example(/* aliceHas */ 50L, /* bobHas */ 0L, /* amount */ 50L)\n rerun:\n PROPTASTIC_SEED=0x4f1c2a9e7b3d5f60 ./gradlew test --tests 'BankAccountTest.aTransferWithAFeeKeepsTheTotal'"}run, started and durationMs differ every run; the rest is the same for this seed.
Schemas has every field.
Counterexamples
Section titled “Counterexamples”The counterexample a property’s last run saved, which the next run tries first:
id=c8f0ad315seed=5700478088505024352choices=50/1000000 0/1000000 49/999999A counterexample that drew a value in a region zone, from zones(), has one more line,
tzdb=2026e: the version of the time zone database its zone’s rules came from, as a replay under
another version may not draw the same moment. Dates and times shows
one.
Counterexamples and ids says what each line is, and how the file is
named: the test’s name with anything but letters,
digits, ., _ and - made _, at most 80 characters of it, never starting with a dot, a - or
a Windows device’s name, then - and a hash of the name exactly, so no two tests share a file.
Every file and folder named after a test is named this way: its event, its corpus’s folder and the
folder of a search’s kept inputs.
The corpus
Section titled “The corpus”Each property has a folder under .proptastic/corpus/, named as its counterexample’s file is,
bank.BankAccountTest_aTransferWithAFeeKeepsTheTotal__-64373114/ for the bank’s, or from its own
id when it has one. An entry in it is a file named by the hash of its choices:
proptastic.corpus/v1choices=50/1000000 0/1000000 49/999999domain=dbb236166b054eeeinput=aliceHas = 50, bobHas = 0, amount = 50The corpus says how entries are kept and run.
A search’s kept inputs
Section titled “A search’s kept inputs”Each property a coverage-guided search ran has a folder under .proptastic/fuzz/, named as its
counterexample’s file is, and each input it kept is a file there, named by the hash of its choices
and holding them on a choices= line. Only proptastic fuzz reads them, to start its next search
of the property; a run never replays them. A property keeps at most 1,000, or as many as
PROPTASTIC_FUZZ_KEEP says, the least useful dropped first. Fuzzing says
what a search keeps.
- Cache
.proptastic/corpus/between runs if you want each run to start with the inputs the last ones found. It’s a cache: losing it loses nothing a longer run can’t find again. - Cache
.proptastic/fuzz/between nightly searches if you want each to start where the last one stopped. It’s a cache too, and onlyproptastic fuzzreads it. - Keep the build directory’s
events/andcounterexamples/as the run’s artifacts when it fails, so the failure can be read and replayed after the CI machine is gone.