Bazel output results as junit.xml
Most test rules in Bazel output the results in a junit.xml format. The only change needed for this is:
fixed_args = [
"--test-report $XML_OUTPUT_FILE",
"--output junit",
]
But this uses the same test suite name for every test, which doesn't look great in most CI systems that parse junit.xml files. So it also passes the test target as the suite name, which also required me to modify the go code to accept a suite name.
@vinnybod do you need help getting the tests green on this one?
@alexeagle @loosebazooka do you think we can merge this?
I noticed our test logs (stdout) don't display the errors anymore since this change.
Shouldn't this feature be opt-in via a setting? I understand CI systems usually parse junit reports, but that's not the case when running tests locally.