Open
Description
openedon Jun 26, 2016
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment