Runtime: Update code coverage template

Created on 10 Dec 2018  路  8Comments  路  Source: dotnet/runtime

The current template does not contain all features that come with ReportGenerator. Also it contains a zip link at the top right which indicates that it is custom tailored.

@mmitche @MattGal is the htmlPublisher using a static template? how can we update it?

cc @danmosemsft

area-Infrastructure-libraries

Most helpful comment

Your thumbs ups and hearts made me open a corresponding issue in the ReportGenerator repo: https://github.com/danielpalme/ReportGenerator/issues/187

All 8 comments

@ViktorHofer It's just grabbing all html files that are specified in the glob pattern, not based off of a template.

Your thumbs ups and hearts made me open a corresponding issue in the ReportGenerator repo: https://github.com/danielpalme/ReportGenerator/issues/187

By default Jenkins is very restrictive about JavaScript. If you use the default CSP rules you will only see a static report.
If you wish to use the JavaScript based dynamic features, then you have to change the CSP settings in Jenkins.
Navigate to the Jenkins Script Console and execute the following command:

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "sandbox allow-scripts allow-same-origin; default-src 'self';")

@mmitche could we enable same-origin scripts to get the full report experience? See danielpalme/ReportGenerator#187 for more details

ping @mmitche @MattGal

could we enable same-origin scripts to get the full report experience? See danielpalme/ReportGenerator#187 for more details

@ViktorHofer Given that we're headed off jenkins for master very soon, I'd rather not muck around with this.

Works for me.

@danmosemsft the report should be fully feature in Azure DevOps. I'll stand-by till we fully switched.

Closing as no action needed.

Was this page helpful?
0 / 5 - 0 ratings