A sample project with
- a dummy javascript function
- a few Jasmine test cases for this dummy function
- minimum Karma configuration with coverage reporter
- gulp file which will trigger Karma run
Try
npm install
npm test
and it will generate a coverage file under coverage folder, naming lcov.info.
Send it to SonarQube and you will see your coverage.