On Windows, html report references all css and js from wrong location
See original GitHub issueProject structure is:
{root}\contracts\Authorization.sol
Running solidity-coverage in {root}
folder creates a new folder coverage
.
Opening the index.html
looks fine:
However when drilling down into the contracts show a html page like:
The location from the css and js file is wrong:
<link rel="stylesheet" href="../../../../../../../../../../prettify.css" />
...
<script src="../../../../../../../../../../prettify.js"></script>
A valid path could be:
<link rel="stylesheet" href="../coverage/prettify.css" />
...
<script src="../coverage/prettify.js"></script>
Is this a known issue?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Handling common HTML and CSS problems - MDN Web Docs
CSS has a similar story — you need to check that your property names are spelled correctly, property values are spelled correctly and...
Read more >Jenkins - HTML Publisher Plugin - No CSS is displayed when ...
After performing these steps my Serenity reports had all images/css rendering properly, including reports from builds which had executed prior to this change....
Read more >HTML File Paths - W3Schools
A file path describes the location of a file in a web site's folder structure. ... Buy lifetime access to all W3schools Certificates...
Read more >JavaScript Window Location - W3Schools
The window.location object can be used to get the current page address (URL) and to redirect the browser to a new page.
Read more >CSS Layout - The position Property - W3Schools
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s indeed solved !
All reports are now correctly generated in
Solidity-Examples/SmartContracts/SupplyChainLog/Solidity/coverage/contracts
folder.@StefH I believe this should be resolved on latest:
0.4.8
. Thanks so much for pursuing this - a Windows user fixed this problem months ago, and we immediately broke it again! Not good.Please re-open if you continue to see this issue - closing for now.