Skip to content

Commit

Permalink
feat(test): extend karma.conf.js w/ kjhtml reporter
Browse files Browse the repository at this point in the history
karma-jasmine-html-reporter (kjhtml) displays Jasmine test runner in the test browser.
  • Loading branch information
wardbell committed Feb 14, 2017
1 parent 4e06612 commit 7d78f4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/@angular/cli/blueprints/ng2/files/karma.conf.js
Expand Up @@ -8,9 +8,13 @@ module.exports = function (config) {
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-remap-istanbul'),
require('@angular/cli/plugins/karma')
],
client:{
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
files: [
{ pattern: './<%= sourceDir %>/test.ts', watched: false }
],
Expand All @@ -32,7 +36,7 @@ module.exports = function (config) {
},
reporters: config.angularCli && config.angularCli.codeCoverage
? ['progress', 'karma-remap-istanbul']
: ['progress'],
: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
Expand Down
1 change: 1 addition & 0 deletions packages/@angular/cli/blueprints/ng2/files/package.json
Expand Up @@ -37,6 +37,7 @@
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-jasmine-html-reporter": "^0.2.2",
"karma-remap-istanbul": "^0.6.0",
"protractor": "~5.1.0",
"ts-node": "1.2.1",
Expand Down

0 comments on commit 7d78f4a

Please sign in to comment.