istanbuljs / nyc

the Istanbul command line interface
https://istanbul.js.org/
ISC License
5.55k stars 353 forks source link

Chrome code coverage dev tools - to gitlab code coverage visualization tool #1510

Open teleginaian opened 1 year ago

teleginaian commented 1 year ago

Link to bug demonstration repository

Expected Behavior

Observed Behavior

Troubleshooting steps

Environment Information

# paste the output here

I have json files that were generated by chrome dev tools test coverage like this: [{ "url": "https://example.com/main.css", "ranges": [{ "start": 0, "end": 106 }, { "start": 531, "end": 787 } ], "text": "body{margin:0;font-family:\"Helvetica Neue\",\"Helvetica\",Helvetica,Arial,sans-serif}*{box-sizing:border-box}.header{background-color:#efefef;padding:10px 30px;display:flex;justify-co...." }]

can I convert them to a report or a cuberture format? if so how?

runspired commented 1 year ago

would also love to see this, would be great to use chrome's built in coverage reporting and have the report generate from that vs needing the babel transform to add the counters