Code Coverage Details for Guests

Answered

It came to my attention that the detailed code coverage reports are not visible to our guest viewers on our TeamCity server.  For guests they do not see the "View full report" link or the "Code Coverage" tab. 

I went and looked at the role on the Guest account and found if I add the "View build runtime parameters and data" permission they can now see the "Code Coverage" tab correctly.  However...  now they can see the "Parameters" tab too which seems to include sensitive information like "system.teamcity.auth.password".

So how do we allow guests to view the code coverage without giving them access to all the internal server parameters?

3 comments

Hi Tom,

Currently there is no special permission to see code coverage. Please vote for the request: https://youtrack.jetbrains.com/issue/TW-12620.

Current workaround would be to have a separate build configuration (in another project) that can re-publish certain artifacts. Users then can be granted permission to view this new build configuration (project).

0

@Alina

 

Is there some way to include the final coverage report data in the build artifacts as a fallback?  Where does the runner store the coverage report data?

0

Hello Tom,

Sorry for delay. The runner publishes code coverage results as hidden artifacts. You can find them if you open build > Artifacts tab > Show Hidden.

0

Please sign in to leave a comment.