You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I use Jacoco plugin in gradle to generate the coverage report for JUnit tests. Line highlights works fine but when I preview the report, all style are gone and none of the links are clickable. Using dev tools it shows that all resources were blocked by CSP due to the header "default-src: 'none'" added (by VSCode? at least it is not in the index.html originally).
To Reproduce
Steps to reproduce the behaviour:
Get a project using gradle with jacoco plugin enabled. e.g. this one
For this extension setting: "coverage-gutters.coverageReportFileName": "build/jacocoHtml/index.html"
Run gradle test. It should generate the report as well.
Preview using this extension
Expected behaviour
A preview report being shown with all styles in and links clickable.
Screenshots
Screenshot for report preview (in vscode):
What it should look like in an ordinary browser:
Screenshot of dev tools:
(The default-src: 'self' is added by me to index.html manually but it does not seem to work. The original file generated by Jacoco does not have this. The first default-src: 'none' is added by VSCode.)
Desktop (please complete the following information):
OS: windows
Extension Version 2.7.2
VSCode Version 1.54.3
The text was updated successfully, but these errors were encountered:
@ryanluker Sorry for the confusion. I edited the text after I submit the issue. The CSP double is because I wanted to try whether adding CSP manually in the html files will work. The original html file does not have any CSP header and the only one added by VSCode is the none one.
Describe the bug
I use Jacoco plugin in gradle to generate the coverage report for JUnit tests. Line highlights works fine but when I preview the report, all style are gone and none of the links are clickable. Using dev tools it shows that all resources were blocked by CSP due to the header "default-src: 'none'" added (by VSCode? at least it is not in the
index.html
originally).To Reproduce
Steps to reproduce the behaviour:
build.gradle
:"coverage-gutters.coverageReportFileName": "build/jacocoHtml/index.html"
Expected behaviour
A preview report being shown with all styles in and links clickable.
Screenshots
Screenshot for report preview (in vscode):
What it should look like in an ordinary browser:
Screenshot of dev tools:
(The
default-src: 'self'
is added by me toindex.html
manually but it does not seem to work. The original file generated by Jacoco does not have this. The firstdefault-src: 'none'
is added by VSCode.)Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: