Skip to content

Commit ebcb914

Browse files
committed
chore(coverage): add report coverage script
1 parent 99ac829 commit ebcb914

2 files changed

Lines changed: 45 additions & 1 deletion

File tree

package-lock.json

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
"format:write": "prettier --write 'projects/**/*.ts'",
1010
"test": "npm run test:lib && npm run test:showcase",
1111
"test:lib": "jest --config ./projects/pretty-html-log/jest.config.js",
12-
"test:lib:coverage": "jest --config --coverage ./projects/pretty-html-log/jest.config.js",
12+
"test:lib:coverage": "jest --coverage --config ./projects/pretty-html-log/jest.config.js",
1313
"test:lib:watch": "jest -o --watch --config ./projects/pretty-html-log/jest.config.js",
1414
"test:showcase": "jest --config ./projects/pretty-html-log-showcase/jest.config.js",
1515
"test:showcase:coverage": "jest --coverage --config ./projects/pretty-html-log-showcase/jest.config.js",
1616
"test:showcase:watch": "jest -o --watch --config ./projects/pretty-html-log-showcase/jest.config.js",
17+
"report-coverage:lib": "cat ./projects/pretty-html-log/coverage/lcov.info | codecov",
1718
"lint": "ng lint",
1819
"e2e": "ng e2e"
1920
},
@@ -44,6 +45,7 @@
4445
"@types/jasminewd2": "~2.0.3",
4546
"@types/jest": "^24.0.19",
4647
"@types/node": "^8.9.5",
48+
"codecov": "^3.6.1",
4749
"codelyzer": "^5.0.0",
4850
"husky": "^3.0.9",
4951
"jasmine-core": "~3.4.0",

0 commit comments

Comments
 (0)