I used sonar scanner, but the coverage is 0%.
How can i solve this problem?
I’ve looked through various other documentation, but I can’t seem to find a clear solution.
Below is part of my project source.
Code Coverage doesn’t appear out of thin air. You need to use a tool that generates this file (with actual content, not just a blank file). This is what tools like instanbul are for – to actually generate a lcov.info file with information about code coverage.