jasmine / jasmine-browser-runner

Serve and run your Jasmine specs in a browser
50 stars 25 forks source link

Code Coverage #44

Closed serk12 closed 9 months ago

serk12 commented 11 months ago

Hello, is there any way to integrate a code coverage for the browser code? I can't find any resource mentioning jasmine-browser.

sgravrock commented 10 months ago

I haven't actually tried this, but you could probably put something together by instrumenting your code with babel-plugin-istanbul, collecting coverage data in an afterAll, and implementing an API endpoint via custom Express middleware to write the report to disk.