Skip to content

Parses output from `go test -json` into TeamCity Service Messages

License

Notifications You must be signed in to change notification settings

tombuildsstuff/teamcity-go-test-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeamCity Go Test Json

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

Example Usage

teamcity-go-test-json -scope ./package -parallelism=3 -count=1

Supported Arguments

The following arguments are supported on the command-line:

  • count - The number of times which each test should be run. Defaults to 1.

  • 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 to 1.

You can also set the Environment Variable DEBUG to any value to see the commands/output which is being parsed.

Licence

Apache 2.0

About

Parses output from `go test -json` into TeamCity Service Messages

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages