Hi All,
I get the following error during the code analysis whenever I set sonar.junit.reportsPath correctly to point to surefire reports (sonar-maven-plugin:2.6 does that by default): [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project xxx: Fail to decorate 'org.sonar.api.resources.Project@5bb6a8ba[id=10386,key=xxx,qualifier=TRK]': Can not add twice the same measure on org.sonar.api.resources.Project@5bb6a8ba[id=10386,key=xxx,qualifier=TRK]: org.sonar.api.measures.Measure@3046fa92[metricKey=tests,metric=Metric[id=10028,key=tests,description=Number of unit tests,type=INT,direction=-1,domain=<null>,name=tests,qualitative=false,userManaged=false,enabled=true,origin=JAV,worstValue=<null>,bestValue=<null>,optimizedBestValue=false,hidden=false,deleteHistoricalData=false],value=18218.0,data=<null>,description=<null>,alertStatus=<null>,alertText=<null>,tendency=<null>,date=<null>,variation1=<null>,variation2=<null>,variation3=<null>,variation4=<null>,variation5=<null>,url=<null>,characteristic=<null>,requirement=<null>,personId=<null>,persistenceMode=FULL,fromCore=false] Can you help me resolve that? Without this, I'm not able to display tests statistics in Sonarqube correctly. Thanks, Michal Kordas |
Hi Michal, Are you analysing a multi language project? Some plugins used to set 0 as "test" metric when there is no test for their language. This was not multi-language friendly so they had been updated. Maybe you still have an outdated language plugin around? ++ Julien 2015-05-06 18:46 GMT+02:00 Michał Kordas <[hidden email]>:
|
Hi Julien,
Does that mean that for instance Javascript plugin's option "Force 0 coverage value" should be set to false if there is a possibility that a project contains both java and javascript code ? Thanks for your answer, Michel |
In reply to this post by Julien HENRY
Hi Julien,
Yes, I'm analysing project with multiple languages: Java, Groovy, JavaScript and Web stuff. Moreover, I use sonar-xquery-plugin with is most probably source of problem, but I cannot resign from it, as great majority of business logic in my project is written in XQuery. Anyway, I don't think that some problems with plugin should make entire analysis fail. Can this be repaired? Thanks A LOT, Michal 2015-05-11 14:10 GMT+02:00 Julien HENRY <[hidden email]>:
|
Free forum by Nabble | Edit this page |