I have a test rig with three sets of tests for a sudoku solver:
- Test most functions individually
- Test the final few functions, which use those in step 1
- Test the final few functions with 95 harder puzzles
As step 3 takes a while, I’m looking for a way to only go to the next step if all the previous steps passed. Is it possible to do this using the unit test framework, or is it easier to write my own control structure?
If you have your tests structured in
unittesttest suites, you can execute the long-running test suite only if the first test suite passed without errors using the following piece of code: