0% coverage reported in Sonar UI on some files that do have test coverage

Hi,

Welcome to the community!

First, you mention having multiple lcov files. Would the coverage for the 0-coverage files be clustered in any particular one of these? Perhaps one or more files simple isn’t being picked up or parsed successfully?

Can you add -Dsonar.verbose=true to the analysis command line and share your analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann