diff --git a/.c8rc.json b/.c8rc.json new file mode 100644 index 00000000..182358a3 --- /dev/null +++ b/.c8rc.json @@ -0,0 +1,6 @@ +{ + "all": true, + "include": ["js/**.{cjs,js,mjs}", "js/classes/**.{cjs,js,mjs}", "src/**.{cjs,js,mjs}", "./main.{cjs,js,mjs}"], + "reporter": ["clover", "json", "lcov", "text"], + "reportsDir": "coverage_c8" +} \ No newline at end of file diff --git a/.github/workflows/Checks.yml b/.github/workflows/Checks.yml index 1dc8ef46..36dee896 100644 --- a/.github/workflows/Checks.yml +++ b/.github/workflows/Checks.yml @@ -53,13 +53,14 @@ jobs: export DISPLAY=':99' fi - npm run test:jest npm run test:electron-mocha-main + npm run test:jest - name: ' Create COV_REPORT' run: | mkdir COV_REPORT - - name: ' Copy jest results' + - name: ' Copy coverage results' run: | + cp coverage_c8/coverage-final.json COV_REPORT/coverage-final-c8.json cp coverage_jest/coverage-final.json COV_REPORT/coverage-final-jest.json - name: ' CodeCov' uses: codecov/codecov-action@v3 diff --git a/.gitignore b/.gitignore index f4da6554..ccd44bd0 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,7 @@ lib-cov # Coverage directory used by tools like istanbul coverage +coverage_c8 coverage_jest *.lcov