Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Istanbul coverage nested directories in HTML report

The unit test coverage report from Istanbul in HTML format displays every single folder of the project in the index.html.

It actually flattens the directory structure. Is there an option to render the html report with nested folders?

like image 884
sod Avatar asked Jan 31 '26 16:01

sod


1 Answers

If you use the coverage reporter attribute with 'lcov', it should be possible to view using a tool. It does give a folder structure. eg: https://lcov-viewer.netlify.app/report

like image 67
roshi Avatar answered Feb 02 '26 05:02

roshi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!