Sonarcloud Swift Code Coverage

127 views
Skip to first unread message

sebastian...@gmail.com

unread,
Mar 22, 2018, 9:23:20 AM3/22/18
to SonarQube
Hi,

we are trying to get our swift code coverage to show up in sonarcloud (private project) but no success. The scanner prints:
13:11:10.096 INFO: 20/20 source files have been analyzed
13:11:10.104 INFO: Parse coverage report (report)
13:11:10.115 INFO: Sensor Swift Squid Sensor [swift] (done) | time=3607ms

Even in debug mode there is no more output. The coverage report is generated in the llcov format and the "sonar.swift.coverage.reportPath" is set. The files are present in the location the report mentions.
Any way we can debug this further?

Regards,
Sebastian

nicolas...@sonarsource.com

unread,
Mar 22, 2018, 9:53:23 AM3/22/18
to SonarQube
Hi Sebastian,

Few starting points to further debug this:
Best regards,
Nicolas

sebastian...@gmail.com

unread,
Mar 23, 2018, 5:32:15 AM3/23/18
to SonarQube
Hi Nicolas,

thanks for the hint. We where able to identify the issue now. The report file did contain absolute path values that did not match the folder of the source during the scan. We knew about this and created symlinks so that the directories where present. The Scanner does not seem to handle these properly though. We know correct the paths in the report file and with that, it works :)!

Regards,
Sebastian 

Nicolas Bontoux

unread,
Mar 23, 2018, 5:45:51 AM3/23/18
to sebastian...@gmail.com, SonarQube
Great ! Thanks for the update.

Nicolas

--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/hjw1WP19oNg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/7e479b70-989b-4dbd-8456-b8c932b7f47f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Nicolas Bontoux | SonarSource

Support Engineer

http://sonarsource.com

Reply all
Reply to author
Forward
0 new messages