- Ensure sonar-server is running on http://localhost:9000
- run
npm test
to test your code and generate code coverage details (coverage/lcov.info) - run
sonar-scanner
to generate and publish the sonar report to the server - Once done, refresh http://localhost:9000 to see the code coverage
Vinod