Using Sonar Scanner with multiple gcov report directories?

191 views
Skip to first unread message

maxb...@gmail.com

unread,
Sep 13, 2017, 1:33:43 PM9/13/17
to SonarQube
Hello,

I'm trying to use the Sonar scanner on a Linux C application on which I've generated coverage reports using gcov.

The scanner accepts multiple source directories by passing, for example, "-Dsonar.sources=src,test", however I only seem to be able to pass a single directory via the -Dsonar.cfamily.gcov.reportsPath parameter.

Since gcov puts the coverage files next to the source files, if my source files are spread across multiple directories I need to be able to specify multiple directory for the reportsPath parameter.

I have tried passing multiple directories either comma delimited (as with the sonar.sources parameter), and space delimited, but when I do so it appears the scanner is unable to find any of the gcov reports as the project is shown to have 0% coverage.

Thanks!

G. Ann Campbell

unread,
Sep 14, 2017, 8:05:07 AM9/14/17
to SonarQube
Hi,

Please contact support for commercial products. Threads in this group are answered by the community on an 'at best' basis. Queries sent to support are answered by a dedicated team of professionals. 


:-)
Ann
Reply all
Reply to author
Forward
0 new messages