mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
Fix test run/coverage for document list
This commit is contained in:
parent
30ec75fb0b
commit
c0dc2645bb
@ -59,12 +59,11 @@ module.exports = function (config) {
|
|||||||
'karma-jasmine',
|
'karma-jasmine',
|
||||||
'karma-coverage',
|
'karma-coverage',
|
||||||
'karma-chrome-launcher',
|
'karma-chrome-launcher',
|
||||||
'karma-mocha-reporter',
|
'karma-mocha-reporter'
|
||||||
'karma-jasmine-html-reporter'
|
|
||||||
],
|
],
|
||||||
|
|
||||||
// Coverage reporter generates the coverage
|
// Coverage reporter generates the coverage
|
||||||
reporters: ['mocha', 'coverage', 'kjhtml'],
|
reporters: ['mocha', 'coverage'],
|
||||||
|
|
||||||
// Source files that you wanna generate coverage for.
|
// Source files that you wanna generate coverage for.
|
||||||
// Do not include tests or libraries (these files will be instrumented by Istanbul)
|
// Do not include tests or libraries (these files will be instrumented by Istanbul)
|
||||||
@ -73,13 +72,8 @@ module.exports = function (config) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
coverageReporter: {
|
coverageReporter: {
|
||||||
dir: 'coverage/',
|
|
||||||
subdir: 'report',
|
|
||||||
reporters: [
|
reporters: [
|
||||||
{type: 'text'},
|
{type: 'json', subdir: '.', file: 'coverage-final.json'}
|
||||||
{type: 'text-summary'},
|
|
||||||
{type: 'json', subdir: '.', file: 'coverage-final.json'},
|
|
||||||
{type: 'html'}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -18,10 +18,10 @@
|
|||||||
"licensecheck": "license-check",
|
"licensecheck": "license-check",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"pretest": "npm run build",
|
"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 ",
|
"test-browser": "karma start karma.conf.js --reporters kjhtml ",
|
||||||
"posttest": "node_modules/.bin/remap-istanbul -i coverage/coverage-final.json -o coverage -t html",
|
"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"
|
"prepublish": "npm run build"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user