Skip to content

Commit

Permalink
React test results junit (#612)
Browse files Browse the repository at this point in the history
* generate junit.xml for react tests

* add jest-junit as dev-dependency
  • Loading branch information
ndmanvar authored Nov 4, 2024
1 parent 6353b7c commit 2d20098
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
- name: Run React tests
run: |
npm install
npm test -- --coverage
npm test -- --coverage --reporters=jest-junit
working-directory: ./empower/react
- uses: codecov/codecov-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run_codecov_on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Run React tests
run: |
npm install
npm test -- --coverage
npm test -- --coverage --reporters=jest-junit
working-directory: ./empower/react
- uses: codecov/codecov-action@v3
with:
Expand Down
55 changes: 55 additions & 0 deletions react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@sentry/webpack-plugin": "^2.20.1",
"install": "^0.13.0",
"jest-junit": "^16.0.0",
"npm": "^10.8.2",
"react-app-rewired": "~2.2.1",
"redux-mock-store": "^1.5.4"
Expand Down

0 comments on commit 2d20098

Please sign in to comment.