# `mix lockstep.shrink`
[🔗](https://github.com/b-erdem/lockstep/blob/v0.1.0/lib/mix/tasks/lockstep.shrink.ex#L1)

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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
