I have a scalacheck Commands test suite. When I run it it fails in a particularly interesting way, and prints out a seed. I would like to re-run the tests with that seed.
I've tried the following:
sbt Test/runMain MyTest -initialSeed <the seed>Stub extends Properties { propertyWithSeed("lol", <the seed>) = MyCommands.property()(instead of calling justproperty("lol") = MyCommands.property())- In
Stub extends Properties { ... }, define aoverrideParameters(p: Test.Parameters): Test.Parametersin which I override the initial seed parameters onp.
In all cases, I seem to get a new random seed.
Why is this, and how can I replay Commands tests with my favorite failing seed?