it (2, 'sample test', function(done) { this.retries(2); pass the maximum no of retries expect(1).to.equal(2); done(); });
//this.retries(Maximum number of attempts);
If your test case fails, it will run the same test again until the maximum number of attempts or test test is reached. After passing the test test, he will proceed to the next test example.
source share