Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scriptless reports #147

Closed
MortenChristiansen opened this issue Jul 27, 2018 · 2 comments
Closed

Scriptless reports #147

MortenChristiansen opened this issue Jul 27, 2018 · 2 comments
Labels

Comments

@MortenChristiansen
Copy link

We're using VSTS for our CI/CD pipeline and they do not support scripts when viewing the coverage reports. I realize that it might be quite a big task, but is there any chance that ReportGenerator could have an output mode where it creates HTML without any JS code and only use inline CSS?

There is an old Github issue describing the problem as well as a User Voice item to fix it. These are both old enough that I have no hope of the problem ever getting fixed.

@danielpalme
Copy link
Owner

danielpalme commented Jul 27, 2018

If you use the following command line parameter: -reporttypes:HTMLInline the CSS and JS is inlined.
See https://github.com/danielpalme/ReportGenerator/wiki/Output-formats#html

Currently there is no way to completely omit the JS, but this should not be a problem. If JS is blocked it just doesn't get executed. But the reports also work without JS (without dynamic features like filtering of course).

@MortenChristiansen
Copy link
Author

Oh, I missed it because I was looking under the Usages section. It does not include the HTMLInline option. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants