You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, if multiple tests are declared with describe.only or it.only, mocha will only run the last one it finds.
It would be much more useful if mocha would run all tests declared with .only. I regularly want to run a few selected tests, or check another test in addition to the one I am currently working on.
Also, with the current behaviour it is impossible to select some tests when they are generated. Consider:
function test(mode) {
it.only('should do something with mode', function () {
assert(foobar(mode));
});
// many more tests
}
describe('foobar', function () {
test('foo');
test('bar');
});
This will only run the test for 'bar'. It is impossible to select just 'foo'. It would be much more useful to run all of them.
At the moment, if multiple tests are declared with
describe.only
orit.only
, mocha will only run the last one it finds.It would be much more useful if mocha would run all tests declared with
.only
. I regularly want to run a few selected tests, or check another test in addition to the one I am currently working on.Also, with the current behaviour it is impossible to select some tests when they are generated. Consider:
This will only run the test for 'bar'. It is impossible to select just 'foo'. It would be much more useful to run all of them.
Thanks.
Related: #1060, #1676
The text was updated successfully, but these errors were encountered: