fourloops / StopwatchFO

Stopwatch project - by Francesco & Owen
0 stars 0 forks source link

Setup and Teardown testcases #10

Open eliasmalik opened 8 years ago

eliasmalik commented 8 years ago

In QUnit you can use modules to define pre- and post- test case callback functions. You can use these to make sure the state of the watch is identical before and after each test case. This is important for repeatability of cases and writing atomic tests.

otajor commented 8 years ago

Cool, cheers - this will save us calling the reset function after every test next time!