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

Commit

Permalink
Merge pull request #47 from Arquisoft/FixingCoverage
Browse files Browse the repository at this point in the history
Fixing coverage
  • Loading branch information
Nacho888 committed Mar 15, 2019
2 parents 11de6e3 + e29d0ec commit 654f5c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
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

0 comments on commit 654f5c0

Please sign in to comment.