3 ms·
For Jenkins compatible Junit test results you must run the concatenated stdout of your `go test` through: go2xunit -input "${test_outfile}" -output "${GO_TES
by weitzj 10y ago
For Jenkins compatible Junit test results you must run the concatenated stdout of your `go test` through:
go2xunit -input "${test_outfile}" -output "${GO_TEST_JUNIT_FILENAME}"
For Jenkins compatible coverage reports you must concatenate all cover profiles and use `gocov` for conversion:
echo "creating coverage report"
all_coverage_rawfile=$(mktemp tmptest.XXX)
# concatenate all raw report
echo -e "mode: atomic\n$(cat *.coverraw | grep -v 'mode: atomic')" > "${all_coverage_rawfile}"
go tool cover -html="${all_coverage_rawfile}" -o "${GO_COVERAGE_FILENAME_HTML}"
gocov convert "${all_coverage_rawfile}" | gocov-xml > "${GO_COVERAGE_FILENAME_XML}"
Edit: fix typo