-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert test coverage report to junit format #1148
Convert test coverage report to junit format #1148
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
@@ Coverage Diff @@
## devel #1148 +/- ##
==========================================
+ Coverage 42.96% 43.60% +0.63%
==========================================
Files 33 36 +3
Lines 6612 7192 +580
==========================================
+ Hits 2841 3136 +295
- Misses 3534 3822 +288
+ Partials 237 234 -3 see 5 files with indirect coverage changes
|
.github/workflows/test-reporting.yml
Outdated
- name: Interact with the cluster | ||
run: kubectl get nodes | ||
|
||
- name: Run receptor tests with coverage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe something like this?:
- name: Install go junit reporting
run: make go-junit-report
- name: Run receptor tests
run: PATH="${PWD}:${PATH}" go test -v 2>&1 ./... | go-junit-report -set-exit-code > report.xml
Quality Gate passedIssues Measures |
To track the test results from receptor we need them to be in a JUnit compatible format. This PR adds https://github.com/jstemmer/go-junit-report to convert the test output into an xml report.