Add karma summary reporter
This commit is contained in:
parent
f5678ebe20
commit
0ed97864ec
|
@ -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
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue