Clover fails for some of our code. I can't explain everything but let's just say aspectj, maven, and clover are not currently mes amis. However, unit tests are definitely executed and the surefire reports are there. I just don't know why they are not sent to sonar. I haven't checked the sonar db. Do you think the tests could be in the db but just not displayed?
Freddy Mallet wrote:
Hello,
We've never tested this configuration but if Clover is not executed, unit
tests can't be executed. Could you explain why you want to deactivate Clover
?
If you really want to adopt such configuration, you need to use advanced
parameters [1] and the following command line :
mvn sonar:sonar -Dsonar.dynamicAnalysis=reuseReports
-Dsonar.surefire.reportsPath=${yourSurfireDir}
Hope it helps
Freddy
[1] -
http://docs.codehaus.org/display/SONAR/Advanced+parametersOn Mon, Jun 22, 2009 at 7:42 PM, dr3s <amarch@qualcomm.com> wrote:
>
> This is what we run: clean sonar:sonar -Dmaven.clover.skip=true
> -Dmaven.test.failure.ignore=true
>
> It skips clover and runs the tests. I confirmed the test results are
> there.
> However, Sonar shows no tests. I expected code coverage would be blank but
> the test info would be there.
>
> Any ideas?
>
> --
> View this message in context:
>
http://www.nabble.com/skipping-clover-provides-no-test-results-tp24152107p24152107.html> Sent from the Sonar user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>
http://xircles.codehaus.org/manage_email>
>
>