Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ci/unit_test_reports.md')
-rw-r--r--doc/ci/unit_test_reports.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/ci/unit_test_reports.md b/doc/ci/unit_test_reports.md
index f845c79ef45..7677908e93a 100644
--- a/doc/ci/unit_test_reports.md
+++ b/doc/ci/unit_test_reports.md
@@ -114,16 +114,15 @@ ruby:
### Go example
-Use the following job in `.gitlab-ci.yml`, and ensure you use `-set-exit-code`,
-otherwise the pipeline is marked successful, even if the tests fail:
+Use the following job in `.gitlab-ci.yml`:
```yaml
-## Use https://github.com/jstemmer/go-junit-report to generate a JUnit report format XML file with go
+## Use https://github.com/gotestyourself/gotestsum to generate a JUnit report format XML file with go
golang:
stage: test
script:
- - go get -u github.com/jstemmer/go-junit-report
- - go test -v 2>&1 | go-junit-report -set-exit-code > report.xml
+ - go get gotest.tools/gotestsum
+ - gotestsum --junitfile report.xml --format testname
artifacts:
when: always
reports: