Callback to run before all tests in a module
I have a need to run a setup/teardown callback to setup state once for all the tests within a module. I have something implemented that works like:
- module("My Module", {
- beforeAll: function(){
- // will run once for each module in which it's defined before all tests
- },
- afterAll: function(){
- // will run once for each module in which it's defined after all tests have run
- }
- });
Would this be something we'd be interested in having in QUnit?