Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Fixing coverage #47

Merged
merged 2 commits into from
Mar 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "nyc ng test",
"test": "ng test --code-coverage",
"lint": "ng lint",
"e2e": "nyc ng e2e",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"e2e": "ng e2e",
"coverage": "cat ./coverage/lcov.info | coveralls",
"docs:prepare": "npm install gitbook-cli -g && gitbook install",
"docs:watch": "npm run docs:prepare && gitbook serve ./_docs ./docs --open",
"docs:build": "npm run docs:prepare && gitbook build ./_docs ./docs",
"setup:install": "npm install && npm install -g @angular/cli && npm install coveralls nyc --save-dev",
"setup:install": "npm install && npm install -g @angular/cli && npm install coveralls --save-dev",
"extract-i18n": "ng xi18n solid-app --i18n-format xlf --output-path locale --i18n-locale en && ng run solid-app:xliffmerge",
"start-en": "ng serve --configuration=en"
},
Expand Down
9 changes: 6 additions & 3 deletions src/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ module.exports = function (config) {
},
coverageIstanbulReporter: {
dir: require("path").join(__dirname, "../coverage"),
reports: ["html", "lcovonly"],
fixWebpackSourcePaths: true
reports: ["html", "lcovonly", "text-summary"],
fixWebpackSourcePaths: true,
combineBrowserReports: true,
skipFilesWithNoCoverage: true,
verbose: true
},
reporters: ["progress", "kjhtml"],
reporters: ["progress", "kjhtml" , "coverage-istanbul"],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
Expand Down