TeamCity 2019.1 Help

Golang

With the Golang feature enabled for a build configuration, you can build Golang projects and run Go tests.

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.

GoEnvParameter
Last modified: 11 June 2019