After reading this I cannot figure out what I need to do to have llvm-cov report appear in SonarQube.
In this example -Dsonar.cfamily.llvm-cov.reportPath=…/coverage.txt property is used.
How would I generate this coverage.txt?
My project runs multiple tests and generates json files for each test:
llvm-cov export /Test --instr-profile=merged.profdata --format=text
This generates Test.json for each test.
Can I specify the directory where these json files are in sonar.cfamily.llvm-cov.reportPath?
I tried also :
llvm-cov show -object Test1 -object Test2 … --instr-profile=merged.profdata --format=text >coverage.txt
for a small number of tests. In reality I have thousands of tests and I probably cannot put all of them into a single command.
For this limited number of tests this seem to create a single coverage.txt. The file looks ok.
I specified path to this coverage.txt
and do not see any coverage info in SonarQube.
Should this coverage.txt be a text file, or json or lcov trace format?