Skip to content

Commit 2d20098

Browse files
authored
React test results junit (#612)
* generate junit.xml for react tests * add jest-junit as dev-dependency
1 parent 6353b7c commit 2d20098

File tree

4 files changed

+58
-2
lines changed

4 files changed

+58
-2
lines changed

.github/workflows/auto-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- name: Run React tests
7373
run: |
7474
npm install
75-
npm test -- --coverage
75+
npm test -- --coverage --reporters=jest-junit
7676
working-directory: ./empower/react
7777
- uses: codecov/codecov-action@v3
7878
with:

.github/workflows/run_codecov_on_pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Run React tests
2121
run: |
2222
npm install
23-
npm test -- --coverage
23+
npm test -- --coverage --reporters=jest-junit
2424
working-directory: ./empower/react
2525
- uses: codecov/codecov-action@v3
2626
with:

react/package-lock.json

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

react/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
5858
"@sentry/webpack-plugin": "^2.20.1",
5959
"install": "^0.13.0",
60+
"jest-junit": "^16.0.0",
6061
"npm": "^10.8.2",
6162
"react-app-rewired": "~2.2.1",
6263
"redux-mock-store": "^1.5.4"

0 commit comments

Comments
 (0)