Coverage with automatic analysis in Sonarcloud

Hi!

I just started using SonarCloud and I’m setting it up using automatic analysis for now. The thing is that I can’t see the coverage percentage in the results, I think it’s because I’m using the automatic analysis per something I read in the forum so my questions are:

  • Do I need to integrate Sonarcloud with my CI system? We use Codeship.
  • Can someone help me with the integration in Codeship?

Thank you very much in advance

Hi Laura,

Welcome to the SonarSource Community!

You are correct that automatic analysis does not produce code coverage metrics because you need to run the unit tests to produce the coverage reports to import to SonarCloud. Setting up Codeship to run the unit tests, analysis and send to SonarCloud is the way to go.

I suggest you start with the SonarCloud tutorials and documentation to get your Codeship analysis running. If you have specific questions, feel free to ask.

Cheers

Brian