Run Sonar Scan @ Merge / Pull Request with Code Coverage Report displayed in SonarCloud

Hi Support,

I have a situation where iam already running scans for my projects from GitLab CI.

Now i need to run tests on the same code base and send the test results and code coverage reports to the respective project page for the particular branch on sonarcloud.

Been trying this to no success

The test framework is SpecFlow

Please i would really appreciate some help in this regard.

Thank you in advance

Hi,

You need to run your tests before analysis and generate a coverage report. Then feed that coverage report into analysis. The docs should help.

 
Ann