Fix test run/coverage for document list

This commit is contained in:
Denys Vuika 2016-05-31 12:41:12 +01:00
parent 30ec75fb0b
commit c0dc2645bb
2 changed files with 5 additions and 11 deletions

View File

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

View File

@ -18,10 +18,10 @@
"licensecheck": "license-check",
"tsc": "tsc",
"pretest": "npm run build",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run",
"test": "karma start karma.conf.js",
"test-browser": "karma start karma.conf.js --reporters kjhtml ",
"posttest": "node_modules/.bin/remap-istanbul -i coverage/coverage-final.json -o coverage -t html",
"coverage": "http-server -c-1 -o -p 9875 ./coverage/report",
"coverage": "http-server -c-1 -o -p 9875 ./coverage",
"prepublish": "npm run build"
},
"repository": {