Mocha reports the running time of individual specs that take overly long, next to the spec name. This is useful because you can see at a glance what the slow tests are, and is a nice reminder to keep your tests short.
The JUnit format also allows time attributes on <testsuite> and <testcase> elements to indicate the running time of the suite or spec, respectively, in seconds.
Clearly, for feature parity with other test runners, we need this.
Mocha reports the running time of individual specs that take overly long, next to the spec name. This is useful because you can see at a glance what the slow tests are, and is a nice reminder to keep your tests short.
The JUnit format also allows
time
attributes on<testsuite>
and<testcase>
elements to indicate the running time of the suite or spec, respectively, in seconds.Clearly, for feature parity with other test runners, we need this.