Comments (10)
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.
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.
from sbt-sonar.
from sbt-sonar.
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.
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.
Actually you know what ?!
do i need this ?!?!?! https://github.com/RadoBuransky/sonar-scoverage-plugin/releases
?
from sbt-sonar.
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.
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.
Hi @manodupont, did you manage to get to the bottom of your issue?
from sbt-sonar.
Related Issues (20)
- Support Server authentication token HOT 3
- sonarScan failing with multi module not directly under root path HOT 6
- scripted tests are broken
- java.lang.IllegalAccessError: class org.sonarsource.scala.checks.DuplicateBranchScalaCheck$$Lambda$5577/0x00000008020cdb00 HOT 2
- Plugins ignore some properties HOT 1
- Accept system properties when using an external config (sonarUseExternalConfig)
- Improved usage/getting started documentation HOT 5
- The 'sonar.scala.version' is not properly set or is missing HOT 3
- Add 'sonar.tests' property
- Settings with Subprojects HOT 1
- Analyze with Sonar also Java sources
- I have lots of unresolved dependencies HOT 2
- sbt analogue for `mvn sonar:sonar -Dsonar.host.url=http://localhost:9000` HOT 7
- Have you seen this? HOT 1
- Non-zero exit with RuntimeException after successfully uploading the report HOT 2
- sonar.scala.scoverage.reportPath not honored HOT 1
- Show specific failed test in sonar UI HOT 1
- Issue when pushing to upstream branch due to OverlappingFileLockException HOT 4
- sonarScan ignoring report path properties
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt-sonar.