Loading jobs/go_unit_test/go_unit_test.yml +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ go_unit_test: # Install job dependencies - go get -u github.com/jstemmer/go-junit-report github.com/t-yuki/gocover-cobertura # Execute Unit tests to get both the junit report and a coverage file - "$UT_TEST_CMD" -coverprofile=coverage.out ./... 2>&1 | go-junit-report -set-exit-code > report.xml - ${UT_TEST_CMD} -coverprofile=coverage.out ./... 2>&1 | go-junit-report -set-exit-code > report.xml # Output the coverage to stdout for coverage regex to read - go tool cover -func=coverage.out # Capture coverage in cobertura format for MR highlighting Loading Loading
jobs/go_unit_test/go_unit_test.yml +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ go_unit_test: # Install job dependencies - go get -u github.com/jstemmer/go-junit-report github.com/t-yuki/gocover-cobertura # Execute Unit tests to get both the junit report and a coverage file - "$UT_TEST_CMD" -coverprofile=coverage.out ./... 2>&1 | go-junit-report -set-exit-code > report.xml - ${UT_TEST_CMD} -coverprofile=coverage.out ./... 2>&1 | go-junit-report -set-exit-code > report.xml # Output the coverage to stdout for coverage regex to read - go tool cover -func=coverage.out # Capture coverage in cobertura format for MR highlighting Loading