Reproducing failures
An important aspect of developing code with a fuzz testing suite is how to reproduce failing test cases. As for now, Protostar provides means of achieving this.
Reproducing a test run with seed
Protostar prints a numeric seed of a pseudo-random number generator used as a source of generated examples:
17:15:36 [INFO] Test suites: 1 failed, 1 total
17:15:36 [INFO] Tests: 1 failed, 1 total
17:15:36 [INFO] Seed: 3658430058
You can then recreate examples with
the --seed
CLI flag.