Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 54299d2

Browse files
author
Rémy HUBSCHER
committed
Use mocha spec reporter.
1 parent 16207cf commit 54299d2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

karma.conf.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const reporters = ["mocha", "coverage"];
1+
const reporters = ["spec", "coverage"];
22
if (process.env.COVERALLS_REPO_TOKEN) {
33
reporters.push("coveralls");
44
}
@@ -9,6 +9,9 @@ module.exports = function(config) {
99
browsers: ["Firefox"],
1010
frameworks: ["mocha"],
1111
reporters,
12+
specReporter: {
13+
showSpecTiming: true
14+
},
1215
coverageReporter: {
1316
dir: "build/coverage",
1417
reporters: [
@@ -38,7 +41,7 @@ module.exports = function(config) {
3841
"karma-coverage",
3942
"karma-firefox-launcher",
4043
"karma-mocha",
41-
"karma-mocha-reporter"
44+
"karma-spec-reporter"
4245
]
4346
});
4447
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"karma-coveralls": "^1.1.2",
2929
"karma-firefox-launcher": "^1.0.1",
3030
"karma-mocha": "^1.3.0",
31-
"karma-mocha-reporter": "^2.2.4",
31+
"karma-spec-reporter": "0.0.31",
3232
"mocha": "^3.2.0",
3333
"npm-run-all": "^4.0.2",
3434
"pontoon-to-webext": "^1.0.2",

0 commit comments

Comments
 (0)