GithubHelp home page GithubHelp logo

Comments (5)

guwirth avatar guwirth commented on June 4, 2024

Hi @KaurKamaljeet,

please read the wiki first to understand how the plugin is working. The cxx plugin needs external tools to work.

https://github.com/SonarOpenCommunity/sonar-cxx/wiki/Scan-Source-Code
https://github.com/SonarOpenCommunity/sonar-cxx/wiki/Scan-Report-Files
https://github.com/SonarOpenCommunity/sonar-cxx/wiki/Troubleshooting-Coverage

Regards,

from sonar-cxx.

KaurKamaljeet avatar KaurKamaljeet commented on June 4, 2024

Hello @guwirth,
Thank you for your response.
I added cobertura sensor for code coverage in sonar.properties but result is still the same.

sonar.cxx.cobertura.reportPaths=coverage.xml

from sonar-cxx.

KaurKamaljeet avatar KaurKamaljeet commented on June 4, 2024

I am getting following logs for all the sensors

EAE3C8E8-2BA8-4D30-AD31-D8655C30964D

from sonar-cxx.

guwirth avatar guwirth commented on June 4, 2024

Hi,

maybe you can compare your report with the sample here:
https://github.com/SonarOpenCommunity/sonar-cxx/wiki/sonar.cxx.cobertura.reportPaths

The code for the sensor is here:
https://github.com/SonarOpenCommunity/sonar-cxx/tree/master/cxx-sensors/src/main/java/org/sonar/cxx/sensors/coverage/cobertura

Other idea: Do you read a .cpp file? Is the file indexed?

Regards,

from sonar-cxx.

KaurKamaljeet avatar KaurKamaljeet commented on June 4, 2024

Found the issue. My coverage report was not being generated in the cobertura xml format. It was using —Sonarqube instead of —cobertura. After changing that I am getting coverage.

Thanks a lot for all the help

from sonar-cxx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.