Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/2tvenom/go-test-teamcity
Convert golang test output to TeamCity format
https://github.com/2tvenom/go-test-teamcity
ci continuous-delivery continuous-deployment continuous-integration docker go golang jetbrains jetbrains-teamcity teamcity teamcity-format test test-automation test-teamcity tests
Last synced: 3 days ago
JSON representation
Convert golang test output to TeamCity format
- Host: GitHub
- URL: https://github.com/2tvenom/go-test-teamcity
- Owner: 2tvenom
- License: wtfpl
- Created: 2015-11-16T10:52:36.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-24T20:58:43.000Z (over 5 years ago)
- Last Synced: 2024-06-20T11:48:29.627Z (5 months ago)
- Topics: ci, continuous-delivery, continuous-deployment, continuous-integration, docker, go, golang, jetbrains, jetbrains-teamcity, teamcity, teamcity-format, test, test-automation, test-teamcity, tests
- Language: Go
- Size: 29.3 KB
- Stars: 19
- Watchers: 3
- Forks: 10
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Docker automated build](https://img.shields.io/badge/docker-automated--build-blue.svg?style=flat-square)](https://hub.docker.com/r/xjewer/go-test-teamcity/)
# Golang test TeamCity converter
Convert go test output to TeamCity format
Support Run, Skip, Pass, Fail
### Installation
```bash
go get github.com/2tvenom/go-test-teamcity
```### How use
```bash
go test -v ./... | go-test-teamcity
```### Docker
```bash
go test -v ./... | docker run -i xjewer/go-test-teamcity
```### Docker multi-stage build
Extending Golang Dockerhub instructions to `Start a Go instance in your app`:
https://hub.docker.com/_/golang> The most straightforward way to use this image is to use a Go container as both the build and runtime environment. In your Dockerfile, writing something along the lines of the following will compile and run your project:
```Dockerfle
...
COPY --from=xjewer/go-test-teamcity /converter /usr/local/bin/go-test-teamcity
RUN go test -v ./... | go-test-teamcity
```### Links
- https://confluence.jetbrains.com/display/TCD9/Build+Script+Interaction+with+TeamCity