Golang code coverage report
Hi,
I have a build step in TeamCity Enterprise 2017.2.2 (build 50909) to build a go application.
I have a coverage profile collected in a file - coverage.out. The contents look as follows:
ok github.com/prometheus/prometheus/config 0.321s coverage: 89.5% of statements
ok github.com/prometheus/prometheus/discovery 6.440s coverage: 72.0% of statements
What do I need to do with so that I can show the output in code coverage summary showing status bar ?
Dhiman
Please sign in to leave a comment.
Hi Dhiman,
Code Coverage can be added to the reports by using service messages:
https://confluence.jetbrains.com/pages/viewpage.action?pageId=113084582#HowTo...-ImportcoverageresultsinTeamCity
You can also change the status line for the build with service messages:
https://confluence.jetbrains.com/display/TCD18/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ReportingBuildStatus
Hope this helps.