Quantcast
Channel: TeamCity : Powerful CI/CD for DevOps-centric teams | The JetBrains Blog
Viewing all articles
Browse latest Browse all 916

Comment on Building Go programs in TeamCity by Anton Arhipov

$
0
0

Hi!

The current implementation doesn’t use regexp to search for JSON in the output. The code checks for the ‘{‘ ‘}’ characters at the start and at the end of the line. So if the line matches then the contents will be parsed for the data.

If there’s a print statement in your test without “\n” then we wouldn’t be able to locate a valid json. Golang devs recommend using t.Log / t. Error instead of print calls for logging the output in the tests. https://github.com/golang/go/issues/23036#issuecomment-355669573


Viewing all articles
Browse latest Browse all 916

Trending Articles