Skip to content

Commit bea76e7

Browse files
committed
Coverage testing
1 parent da41266 commit bea76e7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/codacy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828
- name: Run tests and collect coverage
2929
run: |
3030
# Replace with the actual command to run your tests
31-
npm run test-with-coverage
31+
npm test
3232
continue-on-error: true
3333

3434
- name: Upload coverage report to Codacy
3535
env:
3636
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
3737
run: |
38-
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r $GITHUB_WORKSPACE/lcov.info
38+
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r $GITHUB_WORKSPACE/coverage/lcov.info
3939
4040
- name: Run Codacy Analysis CLI with Docker (optional)
4141
run: |
@@ -49,4 +49,4 @@ jobs:
4949
codacy/codacy-analysis-cli \
5050
analyze --tool eslint --upload --project-token ${{ secrets.CODACY_PROJECT_TOKEN }} --max-allowed-issues 99999 --commit-uuid $GITHUB_SHA
5151
if: success() # Optional, run only if the previous steps were successful
52-
52+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"test-with-coverage": "nyc --reporter=lcov --reporter=text-summary jest"
7+
"test": "mocha --require blanket -R mocha-lcov-reporter --reporter-options output=coverage tests/**/*.js"
88
},
99
"keywords": [],
1010
"author": "",

0 commit comments

Comments
 (0)