Skip to content

Commit

Permalink
ci: junit reporter adjustments (#3324)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Aug 30, 2023
1 parent 478d4a4 commit 9ab274d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ jobs:
libgtk-3-0 \
libgbm1
- run-slow-tests
- run:
when: always # the report is generated on pass or fail
name: Make test report paths relative
command: |
if [ -e ./reports/out/test_output.xml ]; then
sed -i.bak "s|`pwd`/||g" ./reports/out/test_output.xml
fi
- store_test_results:
path: ./reports/

Expand Down
2 changes: 1 addition & 1 deletion .mocharc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (args.length === 0) {
const reporterConfig = process.env.CI
? {
reporter: 'mocha-junit-reporter',
'reporter-option': ['mochaFile=./reports/test_output.xml'],
'reporter-option': ['mochaFile=./reports/out/test_output.xml'],
}
: {};

Expand Down

0 comments on commit 9ab274d

Please sign in to comment.