Skip to content

Commit 3e2724c

Browse files
committed
Report lcov
1 parent a388922 commit 3e2724c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ jobs:
3131
- name: Install dependencies
3232
run: npm install
3333
- name: Run tests
34-
run: npm run coverage
34+
run: |
35+
npm run coverage
36+
npx nyc report --reporter=lcovonly
3537
- name: Coveralls Parallel
3638
uses: coverallsapp/github-action@master
3739
with:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
node_modules/*
44
.env
55
.pem
6+
coverage/*
7+
.nyc_output/*

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "main.js",
66
"scripts": {
77
"test": "mocha -r dotenv/config ./test",
8-
"coverage": "nyc --reporter=text-summary --reporter=text-lcov npm run test",
8+
"coverage": "nyc npm run test",
99
"start": "node -r dotenv/config main.js"
1010
},
1111
"repository": {

0 commit comments

Comments
 (0)