Skip to content

Commit

Permalink
Migrating the functional mocha test from Spectron to PlayWright (TTLA…
Browse files Browse the repository at this point in the history
…pp#1062)

* Updating the main-window.mjs mocha test we had by replacing Spectron with PlayWright

* Adding mocha coverage report to final

* Attempting to add report file instead of merging

* Adding a config file

* Adds a little more coverage

* Checking if separate files lead to same result

* Removing istanbul-merge
  • Loading branch information
araujoarthur0 authored Mar 9, 2024
1 parent b3fd77f commit 3a4e99f
Show file tree
Hide file tree
Showing 7 changed files with 355 additions and 1,997 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/Checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,11 @@ jobs:
npm run test:electron-mocha-main
npm run test:jest
- 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
npm run test:mocha
- name: ' CodeCov'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: COV_REPORT/coverage-final.json
files: coverage_c8/coverage-final.json,coverage_jest/coverage-final.json,coverage_mocha/coverage-final.json
name: codecov-${{ matrix.os }}
verbose: true
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
Loading

0 comments on commit 3a4e99f

Please sign in to comment.