Scoverage / Sonarqube issue: Fail to resolve files

225 views
Skip to first unread message

Tim Reid

unread,
May 22, 2019, 10:01:27 AM5/22/19
to Scala code coverage tool
Hi,

I'm currently testing SonarQube (v6.7.7) with the SonarScala (v1.5.0) language support, sonar-scanner (v3.3.0) and sbt-scoverage plugin (v1.5.1)
I'm not sure if this is the correct place to ask the question, but scoverage completes successfully, and I then have a problem when I try to upload the scoverage report to SonarQube via sonar-scanner.
It appears the source code files listed in the scoverage report cannot be resolved and hence coverage results are 0% (see error below).

INFO: Sensor Scoverage sensor for Scala coverage [sonarscala]
INFO: Importing coverage from [Absolute path to project root...]/target/scala-2.12/scoverage-report/scoverage.xml
WARN: Fail to resolve 11 file(s). No coverage data will be imported on the following file(s): [File list....]
INFO: Sensor Scoverage sensor for Scala coverage [sonarscala] (done) | time=87ms

One question I have is whether it is possible to configure scoverage so that it includes a relative path in the scoverage report, or is this an issue that anyone else has seen?

Thanks,
Tim

adrian...@gmail.com

unread,
Aug 1, 2019, 11:24:13 PM8/1/19
to Scala code coverage tool
Hi Tim,

I'm running into the same issue. Were you able to resolve this?

Thanks,
Adrian

Tim Reid

unread,
Aug 2, 2019, 4:30:46 AM8/2/19
to Scala code coverage tool
Hi Adrian,
I did get it fixed, apologies for not updating the thread!
In my case it was due to the fact I was running the analysis in a symlinked directory. Once I navigated to the directory following the full path (not symlink) it worked!
Thanks,
Tim
Reply all
Reply to author
Forward
0 new messages