Skip to content

Commit e0442b0

Browse files
committed
[TESTS]: adding codecov to test coverage
igned-off-by: ashish <[email protected]> Signed-off-by: ashish <[email protected]>
1 parent 4f03d2c commit e0442b0

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.circleci/config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,19 @@ jobs:
2525
command: npm test
2626
- run:
2727
name: Generate code coverage
28-
command: './node_modules/.bin/nyc report --reporter=text-lcov'
28+
command: './node_modules/.bin/nyc report --reporter=json > coverage/coverage.json'
2929
- store_artifacts:
3030
path: test-results.xml
3131
prefix: tests
3232
- store_artifacts:
3333
path: coverage
3434
prefix: coverage
35+
- run:
36+
name: Install codecov
37+
command: npm install codecov -g
38+
- run:
39+
name: send code coverage to codecov
40+
command: codecov
3541

3642
workflows:
3743
version: 2

package-lock.json

Lines changed: 13 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"nyc": "^15.0.0",
3030
"ora": "^4.0.2",
3131
"signale": "^1.4.0",
32+
"test": "^0.6.0",
3233
"tslib": "^1.10.0"
3334
},
3435
"devDependencies": {

0 commit comments

Comments
 (0)