Whilst newer versions of JetBrains TeamCity support exporting tests via go test -json
- older versions do not.
This application assists with this by intercepting and parsing the output and outputting it using TeamCity's service messages
teamcity-go-test-json -scope ./package -parallelism=3 -count=1
The following arguments are supported on the command-line:
-
count
- The number of times which each test should be run. Defaults to1
. -
prefix
- The prefix for tests which should be run e.g.TestAcc
. -
scope
- The directory/scope at which tests should be run. Note: the suffix/...
will be appended if not specified. e.g../package
) -
parallelism
- The number of tests which should be run in parallel. -
timeout
- The maximum test duration in hours. Defaults to1
.
You can also set the Environment Variable DEBUG
to any value to see the commands/output which is being parsed.
Apache 2.0