Revert "Use mocha spec reporter.", moving from the karma spec reporter
back to the karma mocha reporter, just because it seems better
supported and is part of the example-webextension standard we're
trying to follow. Try to achieve the same effect using the built-in Karma
option reportSlowerThan -- set it to a generous 40ms.

This reverts commit 54299d275c.
This commit is contained in:
Ethan Glasser-Camp 2017-10-10 14:51:22 -04:00
Родитель 865b9475c2
Коммит a0fc8fba38
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 976BE0690A87C4AA
2 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -1,4 +1,4 @@
const reporters = ["spec", "coverage"];
const reporters = ["mocha", "coverage"];
if (process.env.COVERALLS_REPO_TOKEN) {
reporters.push("coveralls");
}
@ -9,9 +9,7 @@ module.exports = function(config) {
browsers: ["Firefox"],
frameworks: ["mocha"],
reporters,
specReporter: {
showSpecTiming: true
},
reportSlowerThan: 40,
coverageReporter: {
dir: "build/coverage",
reporters: [
@ -41,7 +39,7 @@ module.exports = function(config) {
"karma-coverage",
"karma-firefox-launcher",
"karma-mocha",
"karma-spec-reporter"
"karma-mocha-reporter"
]
});
};

Просмотреть файл

@ -28,7 +28,7 @@
"karma-coveralls": "^1.1.2",
"karma-firefox-launcher": "^1.0.1",
"karma-mocha": "^1.3.0",
"karma-spec-reporter": "0.0.31",
"karma-mocha-reporter": "^2.2.4",
"mocha": "^3.2.0",
"npm-run-all": "^4.0.2",
"pontoon-to-webext": "^1.0.2",