Closed GCheung55 closed 10 years ago
I was thinking of solutions for resolving this issue. So I'll throw out some ideas.
module.exports = function(){
buster.testCase('test' {...});
}
I don't know how the browser env would respond to this though.
require('buster')
occurs in the test, then it could cause some problems, right?
Hey guys,
I don't know if this is expected or an issue. Tests clearly defined in multiple groups in the config file are only run once.
Something like:
I've identified why it's only running once. buster-test-cli/lib/runners/node.js has a descriptiveRequire function that require files. As expected, require'ing a file loads it into node.js' cache so every call to the same module would return the same module without executing the code in that module more than once.
Is this testing to be expected? It looks like it should actually be run for every time it's defined in a group. An example of why this should be the case is when I have an extension that has different options for each group.
@cjohansen Said this was a bug.