Skip to content

Commit

Permalink
Adding mocha coverage report to final
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoarthur0 committed Feb 3, 2024
1 parent 4214955 commit d3083fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/Checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ jobs:
npm run test:electron-mocha-main
npm run test:jest
npm run test:mocha
- name: ' Create COV_REPORT'
run: |
mkdir COV_REPORT
- name: ' Merge coverage results'
run: |
npx istanbul-merge --out COV_REPORT/coverage-final.json coverage_c8/coverage-final.json coverage_jest/coverage-final.json
npx istanbul-merge --out COV_REPORT/coverage-final.json coverage_c8/coverage-final.json coverage_jest/coverage-final.json coverage_mocha/coverage-final.json
- name: ' CodeCov'
uses: codecov/codecov-action@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ lib-cov
coverage
coverage_c8
coverage_jest
coverage_mocha
*.lcov

# nyc test coverage
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"start": "electron .",
"test": "npm-run-all test:*",
"test:jest": "jest --runInBand --verbose=false --detectOpenHandles --colors --transformIgnorePatterns 'node_modules/(?!astronomia)/' -- ",
"test:mocha": "nyc --reporter=lcov --reporter=json mocha tests/*",
"test:mocha": "c8 -o ./coverage_mocha mocha tests/*",
"test:electron-mocha-main": "c8 electron-mocha --config __tests__/electron-mocha-main.config.cjs",
"setup:win": "node scripts/create_windows_installer.js"
},
Expand Down

0 comments on commit d3083fa

Please sign in to comment.