Skip to content

2tvenom/go-test-teamcity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker automated build

Golang test TeamCity converter

Convert go test output to TeamCity format

Support Run, Skip, Pass, Fail

Installation

go get github.com/2tvenom/go-test-teamcity

How use

go test -v ./... | go-test-teamcity

Docker

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:


...

COPY --from=xjewer/go-test-teamcity /converter /usr/local/bin/go-test-teamcity
RUN  go test -v ./... | go-test-teamcity

Links