lcov.info file in karma, angular not generating

Viewed 3580

I am running ng test in starter angular 10 project with code-coverage option. Coverage folder is generating properly, but i cant find lcov.info. I need this file for SonarQube.

Please help.

1 Answers

I had the same issue and I found the way to fix it. just go in karma.conf.js and add a type lcov in reporters reporters: [ { type: 'lcov' } ]

Related