proptastic explain
Everything known of one property, or of one of its outcomes, from the last run; with none, every property known. It reads the manifest, the events, a saved counterexample, the proposals and the corpus, and runs the property once only when there's no last run for it.
Usage
proptastic explain [PROPERTY [OUTCOME]] [DIR]proptastic explainproptastic explain sortKeepsSizeproptastic explain --at=src/test/java/shop/SortTest.java:31Output
As the command printed it, run on a sample project: each is held to a real run by the command's own tests.
proptastic explain ✓ CalendarTest#everyMonthHasAtLeast28Days passed 100 tries · calendar/CalendarTest.java:19 ✓ CalendarTest#followsTheLeapYearRule passed 100 tries · followed Calendar.isLeap · calendar/CalendarTest.java:13 ✗ CalendarTest#novemberHas30Days failed · counterexample c890c8808 · calendar/CalendarTest.java:29
Next: proptastic explain 'CalendarTest#everyMonthHasAtLeast28Days'proptastic explain novemberHas30Days ✗ FAILED CalendarTest#novemberHas30Days ┌─ src/test/java/calendar/CalendarTest.java:29 │ 29 │ forAll(integers().atLeast(1).atMost(3_000)) │
last run: failed · counterexample c890c8808 · after 0 tries · seed 0x1cf4306b152e2fe5 started: 2026-12-03T07:02:19.420Z input: year = 1 pin it: .example(1) check said: November has 30 days ==> expected: <true> but was: <false> rerun: proptastic run --only='calendar.CalendarTest#novemberHas30Days()' --seed=0x1cf4306b152e2fe5 counterexample: c890c8808 saved in build/proptastic/counterexamples/calendar.CalendarTest_novemberHas30Days__-873013e2.txt, replayed first next run corpus: no inputs kept proposals: c890c8808: November has 30 days in every year
Next: proptastic example c890c8808 · proptastic example c890c8808 --propose --reason="<why>"
About this property ─────────────────────────────────────────── id: calendar.CalendarTest#novemberHas30Days(), as the manifest names it domains: integers[1,3000] corpus key: calendar.CalendarTest#novemberHas30Days(), the directory its inputs are kept in runs under: test, in the build's rootExit status
0 whatever it finds: it explains, it doesn't judge; 2 when there's no such property or outcome, or no project; 4 when proptastic itself went wrong. The errors behind 2, 3 and the refusals are on Command errors; every code is on Environment and exit codes.
Options
--at=PATH:LINE
Only the property whose forAll is on this line.
proptastic explain --at=src/test/java/shop/SortTest.java:31--edition=EDITION
Which edition's build to run, when DIR's build files could be either's.
One of java, rust, swift.
proptastic explain --edition=java--format=FORMAT
How proptastic answers: agent for coding agents, jsonl for tools; full on a terminal, concise elsewhere.
One of full, concise, agent, jsonl.
When it isn't given: PROPTASTIC_FORMAT, PROPTASTIC_AGENT.
proptastic explain --format=agent--color=WHEN
Sets PROPTASTIC_COLOR: whether what proptastic and the properties print is in colour, auto when not given.
One of auto, always, never.
When it isn't given: PROPTASTIC_COLOR, NO_COLOR, FORCE_COLOR.
proptastic explain --color=never