Skip to content

Commit

Permalink
feat: use a library to convert tap to xml format, and use junit
Browse files Browse the repository at this point in the history
reporter to publish the test results
  • Loading branch information
sirishgf committed Jan 2, 2024
1 parent a43c4e2 commit 15ed141
Show file tree
Hide file tree
Showing 4 changed files with 174 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/node-ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,12 @@ jobs:
with:
name: my-artifact
path: coverage/lcov-report
retention-days: 14
retention-days: 14

- name: Publish test report
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: '**/test.xml'
detailed_summary: true
include_passed: true
162 changes: 161 additions & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"firebase-functions-test": "^3.1.0",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"nyc": "^15.1.0"
"nyc": "^15.1.0",
"tap-junit": "^5.0.2"
},
"private": true
}
2 changes: 2 additions & 0 deletions test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0"?><testsuites tests="0" name="Tap-Junit" failures="0"><testsuite name="Tap-Junit-Suite" tests="0" skipped="0" failures="0"/></testsuites>

0 comments on commit 15ed141

Please sign in to comment.