mix lockstep.shrink (Lockstep v0.1.0)

Copy Markdown View Source

Reduce a failing Lockstep trace to a minimal schedule that still triggers the same bug.

Usage

mix lockstep.shrink --trace traces/foo.lockstep \
                    --run "MyApp.RaceTest.lost_update_body" \
                    --file test/examples/foo_test.exs

Loads --file (so test modules become available), then drives Lockstep.Shrink.shrink/3 against the trace. Saves a .shrunk.lockstep alongside the original and prints a one-line summary.

Use --verbose for per-attempt log lines.