Monday, 24 April 2017

Retries in mocha do not work

I'm trying to use retries in mocha. Here is my code:

'use strict';

const assert = require('chai').assert;

describe('retries', function() {
    it('should not be equal', function () {
        this.retries(10);
        assert.equal(1, 2);
    });
});

I'm expecting, that test would be retried 10 times, but it didn't. Version of mocha is 3.3.0



via user2417883

No comments:

Post a Comment