Skip to content

proptastic corpus

Show the inputs kept for each property; --merge or --prune them. The corpus is a cache of inputs worth trying first, which a fuzz run rebuilds. Its count is of inputs kept, never coverage.

Usage

Terminal window
proptastic corpus [DIR] [OPTIONS]
Terminal window
proptastic corpus
proptastic corpus --merge=ci-corpus

Output

As the command printed it, run on a sample project: each is held to a real run by the command's own tests.

Terminal window
proptastic corpus
Inputs kept ───────────────────────────────────────────────────────────
CalendarTest#everyMonthHasAtLeast28Days none
CalendarTest#followsTheLeapYearRule none
CalendarTest#novemberHas30Days 5 inputs · 2 stale
! 2 orphans, directories no property here uses
calendar.CalendarTest#novemberHasThirtyDays() 1 input: renamed tests? give them .id(…)
id.leap-years 1 input: an .id(…) changed, or its property is gone
proptastic corpus --prune drops them; nothing does it unasked.
Corpus .proptastic/corpus
Kept 5 inputs kept for 1 property · 2 stale · 2 orphans
the corpus is a cache; a fuzz run rebuilds it

Exit status

0 when done; 2 for a mistake in the command, the environment or a file; 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

--only=PROPERTY

Only this property, by its id as the manifest has it, or by its name alone when exactly one property has that name.

Terminal window
proptastic corpus --only=SortTest#sortKeepsSize

--edition=EDITION

Which edition's build to run, when DIR's build files could be either's.

One of java, rust, swift.

Terminal window
proptastic corpus --edition=java

--prune

Example: drop the counterexamples and proposals whose property has gone or whose line changed; corpus: drop orphans, hold each property to its cap, and keep a minimal cover.

Terminal window
proptastic corpus --prune

--merge=DIR

Copy another corpus's entries in, such as CI's.

Terminal window
proptastic corpus --merge=ci-corpus

--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.

Terminal window
proptastic corpus --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.

Terminal window
proptastic corpus --color=never

Privacy