imporve test configuration

This commit is contained in:
Eugenio Romano
2016-05-28 00:52:27 +01:00
parent 821aa7d74d
commit 919eb14de7
21 changed files with 105 additions and 31 deletions

View File

@@ -55,11 +55,12 @@ module.exports = function (config) {
'karma-jasmine',
'karma-coverage',
'karma-chrome-launcher',
'karma-mocha-reporter'
'karma-mocha-reporter',
'karma-jasmine-html-reporter'
],
// Coverage reporter generates the coverage
reporters: ['mocha', 'coverage'],
reporters: ['mocha', 'coverage', 'kjhtml'],
// Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul)
@@ -69,7 +70,9 @@ module.exports = function (config) {
coverageReporter: {
dir: 'coverage/',
subdir: 'report',
reporters: [
{type: 'text'},
{type: 'text-summary'},
{type: 'json', subdir: '.', file: 'coverage-final.json'},
{type: 'html'}