Golang
The Golang build feature enables the real-time reporting and history of Go test results in TeamCity.
Before running builds, make sure a Go compiler is installed on an agent.
To enable Go tests reporting in TeamCity, run them with the -json
flag using one of these two methods:
Add this flag to the Command Line build runner's script:
go test -json
.Add the
env.GOFLAGS = -json
parameter to the build configuration.
![Add a parameter to enable parsing of Golang tests Add a parameter to enable parsing of Golang tests](https://resources.jetbrains.com/help/img/teamcity/2023.09/GoEnvParameter.png)
Last modified: 23 September 2021