You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to display tests duration in the console like with the spec reporter (see https://mochajs.org/#test-duration), but can't figure out how to do it with karma-mocha-reporter.
@noelmace I found myself in the same situation. After some research, I discovered that this reporter actually already supports displaying test duration.
You can use the standard Karma reportSlowerThan configuration property (Karma configuration docs). It defaults to zero, which disables it.
Setting the property to 0.001 made Karma report duration for every one of my test cases, but I assume that the number is situation-dependent.
If you're curious, this project's logic for reporting slow tests is here.
I would like to display tests duration in the console like with the spec reporter (see https://mochajs.org/#test-duration), but can't figure out how to do it with karma-mocha-reporter.
When adding https://mochajs.org/api/mocha#slow to client.mocha in karma.config, it doesn't change anything:
The text was updated successfully, but these errors were encountered: