Closed sbueringer closed 3 years ago
I'm +1 for this change. Probably, the best way to get this is to add go-junit-report as a pinned version dependecy in hack/tools
/priority important-longterm
@sbueringer Do you have time to tackle this?
/help
@vincepri: This request has been marked as needing help from a contributor.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help
command.
@vincepri yes I can implement this. Just wanted to ask first :)
/assign
/milestone v0.4
User Story
As a developer it would be easier to get an overview over flaky unit test if we would have JUnit reports as an output of ci-test.sh.
Detailed Description
For comparison:
Anything else you would like to add:
In case we think this would be useful, I would investigate what the best way is to generate those reports. Some options:
go test -v 2>&1 | go-junit-report > report.xml
go test --json
. Seems to provide a very nice output (at a first glance). Could be used viagotestsum --junitfile unit-tests.xml
I think I would prefer
go-junit-report
because it just converts the go test output to a JUnit file. Shouldn't be a problematic dependency./kind feature