Add karma summary reporter

This commit is contained in:
David Humphrey (:humph) david.humphrey@senecacollege.ca 2018-12-02 10:18:09 -05:00 committed by David Humphrey
parent f5678ebe20
commit 0ed97864ec
3 changed files with 19 additions and 1 deletions

View File

@ -4,13 +4,21 @@ module.exports = function(config) {
basePath: '',
files: ['tests/dist/index.js'],
frameworks: ['mocha', 'chai'],
reporters: ['mocha'],
reporters: ['mocha', 'summary'],
client: {
mocha: {
ui: 'bdd',
timeout: 5000,
slow: 250
}
},
summaryReporter: {
// 'failed', 'skipped' or 'all'
show: 'failed',
// Limit the spec label to this length
specLength: 50,
// Show an 'all' column as a summary
overviewColumn: true
}
});
};

9
package-lock.json generated
View File

@ -5261,6 +5261,15 @@
"strip-ansi": "^4.0.0"
}
},
"karma-summary-reporter": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/karma-summary-reporter/-/karma-summary-reporter-1.5.1.tgz",
"integrity": "sha512-l9dypn5TSGVGL6GS5d63UvQEj9dfrgYdcb+aQUJjHq6oIaX0/VUF51BeWK7S3WLHCTpXMoP6utESpM+9r4ff2A==",
"dev": true,
"requires": {
"chalk": "^1.1.3 || 2.x"
}
},
"kind-of": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz",

View File

@ -53,6 +53,7 @@
"karma-firefox-launcher": "^1.1.0",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.5",
"karma-summary-reporter": "^1.5.1",
"mocha": "^5.2.0",
"nyc": "^13.1.0",
"parcel-bundler": "^1.9.6"