How design a Specs2 database test, with interdependent tests?
问题 Is there some preferred way to design a Specs2 test, with lots of tests that depend on the results of previous tests? Below, you'll find my current test suite. I don't like the var s inbetween the test fragments. They're "needed" though, since some tests generate ID numbers that subsequent tests reuses. Should I perhaps store the ID numbers in a Specs2 Context instead, or create a separate Object that holds all mutable state? And place only test fragments in the specification object? Or is