Making karma test coverage directory browseable

Handsontable JavaScript Spreadsheet Most popular component for web apps

Making karma test coverage directory browseable.

When you run test coverage report it creates a folder containing the report and a json file. However, when your connect test server starts up you see a blank screen.


Use grunt connect options to make the directory browseable. You no longer see a blank screen and can click on the folder to view the coverage report – without having to manually copy+paste the folder name into the url.


I’ve put the code into a GIST:

Then when you click on the folder it loads the coverage report.


Which you can then drill down into see what code has tests written for and what doesn’t.


Sam Deering

Sam Deering

Sam is a web developer, online entrepreneur and investor. In his spare time he enjoys coding, playing chess and sharing what he learns with others.

Leave a Reply

Your email address will not be published. Required fields are marked *