benchtest
benchtest copied to clipboard
Integrated performance testing for Mocha based unit testing
``` beforeEach(benchtest.test); afterEach(function () { benchtest.test(this.currentTest); }); after(function (){ benchtest.report(); }); ``` ``` Uncaught ReferenceError: document is not defined (and Mocha's done() called multiple times) at Function.benchtest.test (node_modules/benchtest/index.js:130:21) at Context....
I would assume the usage of testable should be extended in two place like this? if(benchtest.testable(test) || (benchtest.options.all && !benchtest.options.only)) { Tx, K