Skip to content

Commit

Permalink
feat(aio): enhance unit test experience with karma-jasmine-html-reporter
Browse files Browse the repository at this point in the history
See related [PR 4567](angular/angular-cli#4567) in `angular-cli`
  • Loading branch information
wardbell committed Feb 13, 2017
1 parent b988733 commit 89a2b52
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
8 changes: 6 additions & 2 deletions aio/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ module.exports = function (config) {
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'), // 'kjhtml'
require('karma-remap-istanbul'),
require('@angular/cli/plugins/karma')
],
client:{
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
files: [
{ pattern: './src/test.ts', watched: false }
],
Expand All @@ -30,8 +34,8 @@ module.exports = function (config) {
environment: 'dev'
},
reporters: config.angularCli && config.angularCli.codeCoverage
? ['progress', 'karma-remap-istanbul']
: ['progress'],
? ['progress', 'karma-remap-istanbul'] //, 'kjhtml']
: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
Expand Down
1 change: 1 addition & 0 deletions aio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,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.2.1",
"lodash": "^4.17.4",
"protractor": "~4.0.13",
Expand Down
6 changes: 6 additions & 0 deletions aio/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3316,6 +3316,12 @@ karma-cli@^1.0.1:
dependencies:
resolve "^1.1.6"

karma-jasmine-html-reporter@^0.2.2:
version "0.2.2"
resolved "https://registry.yarnpkg.com/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-0.2.2.tgz#48a8e5ef18807617ee2b5e33c1194c35b439524c"
dependencies:
karma-jasmine "^1.0.2"

karma-jasmine@^1.0.2:
version "1.1.0"
resolved "https://registry.yarnpkg.com/karma-jasmine/-/karma-jasmine-1.1.0.tgz#22e4c06bf9a182e5294d1f705e3733811b810acf"
Expand Down

0 comments on commit 89a2b52

Please sign in to comment.