-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
semver-majorimplementation requires increase of "major" version number; "breaking changes"implementation requires increase of "major" version number; "breaking changes"status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!type: featureenhancement proposalenhancement proposal
Description
this.retries()
allows to run a test multiple times, but the test will pass on the first successful run.
I'm suggesting to add this.rerun()
for tests that might randomly succeed (false positives). It will run the test n
times and will pass only if all of the reruns have passed successfully. It's useful when testing behavior that is probabilistic.
At the moment I'm running the test in a loop:
for (var i = 1; i <= 100; i++) {
it('tests something #' + i, function(done) {
//
});
}
The problem with this approach is that it outputs 100 different tests and messes up the test counting.
weekens, homeyer, knuton, ZacharyRSmith, nileshchavan and 39 more
Metadata
Metadata
Assignees
Labels
semver-majorimplementation requires increase of "major" version number; "breaking changes"implementation requires increase of "major" version number; "breaking changes"status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!type: featureenhancement proposalenhancement proposal