Chai test duration

TEST DURATION

Many reporters will display test duration, as well as flagging tests that are slow, as shown here with the “spec” reporter:

test duration

To tweak what’s considered “slow”, you can use the slow() method:

describe(‘something slow’, function() {
this.slow(10000);

it(‘should take long enough for me to go make a sandwich’, function() {
// …
});
});

Questions