https://github.com/tombuildsstuff/teamcity-go-test-json
Parses output from `go test -json` into TeamCity Service Messages
https://github.com/tombuildsstuff/teamcity-go-test-json
Last synced: over 1 year ago
JSON representation
Parses output from `go test -json` into TeamCity Service Messages
- Host: GitHub
- URL: https://github.com/tombuildsstuff/teamcity-go-test-json
- Owner: tombuildsstuff
- License: apache-2.0
- Created: 2019-12-23T13:51:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T05:42:49.000Z (about 6 years ago)
- Last Synced: 2025-02-07T14:46:38.907Z (over 1 year ago)
- Language: Go
- Size: 103 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TeamCity Go Test Json
Whilst newer versions of [JetBrains TeamCity](https://www.jetbrains.com/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](https://confluence.jetbrains.com/display/TCD9/Build+Script+Interaction+with+TeamCity)
## 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