GithubHelp home page GithubHelp logo

Comments (10)

BalmungSan avatar BalmungSan commented on July 20, 2024 2

The thing is, you are using the official SonarQube plugin.
If you do not see any error message even with the debug flag, then I doubt this has to do with this scanner, and probably is something related with the plugin itself.
You may try asking in SonarSource.

Or you may try our custom sonar-scala plugin. (the one @mwz linked at the beginning).

from sbt-sonar.

mwz avatar mwz commented on July 20, 2024

Hi @manodupont, if you're using sonar-scala then the name of the property is sonar.scala.scoverage.reportPath, but you have an extra s at the end. Hope that fixes it.

from sbt-sonar.

manodupont avatar manodupont commented on July 20, 2024

from sbt-sonar.

manodupont avatar manodupont commented on July 20, 2024

from sbt-sonar.

BalmungSan avatar BalmungSan commented on July 20, 2024

You may try using sonar-scanner manually with the -X flag to see full logs.

You may paste them here if you want. 😉

from sbt-sonar.

manodupont avatar manodupont commented on July 20, 2024

Man, i just can't find the problem! To be honest, something is missing in that plugin.

1 - I got my report under target/scala-2.12/scoverage-report/scoverage.xml
2 - i run sbt sonarScan
3 - It should just upload the file then ...

?

My conf has 4 lines. I dont get why i need to configure more than that considering the fact that I already have my scoverage.xml created. So the plugin should just have to read that file, and upload it. Which is not ....

Is there a log saying something like: File target/scala-2.12/scoverage-report/scoverage.xml being uploaded ... in sonar-scanner ?

from sbt-sonar.

manodupont avatar manodupont commented on July 20, 2024

Actually you know what ?!

do i need this ?!?!?! https://github.com/RadoBuransky/sonar-scoverage-plugin/releases

?

from sbt-sonar.

manodupont avatar manodupont commented on July 20, 2024

According to some other issues #8

i should see something like that ERROR: [scoverage] Report not found at /Users/username/Development/projectFolder/module-1/target/scala-2.12/scoverage-report WARN: [scoverage] Report path not set for Module 1 module! [Module 1.sonar.scoverage.reportPath]

But i never did ...

from sbt-sonar.

manodupont avatar manodupont commented on July 20, 2024

I think its related with my sonar properties multi-module and coverAggregate!

CAuse when i go in sonarQube and set the "Test" key for the Scala Coverage plugin, now i can see something going on when i launch sbt sonarScan

Any idea on this one !

[info] INFO: Importing coverage from /Users/manueldupont/marche-expertise/target/scala-2.12/scoverage-report/scoverage.xml
[info] WARN: Fail to resolve 212 file(s). No coverage data will be imported on the following file(s): /Users/manueldupont/marche-expertise/covea-ren-impl/src/main/scala/com/darva/covea/ren/CoveaRenJsonSerializerRegistry.scala;/Users/manueldupont/marche-expertise/covea-ren-impl/src/main/scala/com/darva/covea/ren/Cove

So, i got a report, BUT, it fails to resolve data from those files ?! But when i read the report, i do have data for those files.

from sbt-sonar.

mwz avatar mwz commented on July 20, 2024

Hi @manodupont, did you manage to get to the bottom of your issue?

from sbt-sonar.

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.