diff --git a/karma.conf.js b/karma.conf.js index b09f102..231678d 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -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 } }); }; diff --git a/package-lock.json b/package-lock.json index 58a7327..bcce716 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index e2da68d..8d3aad6 100644 --- a/package.json +++ b/package.json @@ -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"