Running golang tests within Docker

We are running golang tests within docker. Ex:

RUN go test -json ./...

I have added the golang feature to the build configuration and the tests run but TeamCity is not recognizing the results. I assume it's because of the docker prefixed output.  Ex:

...
#14 [unit-test 1/1] RUN go test -json ./...
#14 sha256:...
#14 16.35 {"Time":"2021-03-22T15:45:02.933296854Z","Action":"output","Package":"github.com/...","Output":"? ...

Is it possible to run golang tests within docker and have the tests recognized by TeamCity?

0

Please sign in to leave a comment.