skipping clover provides no test results

View: New views
9 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Re: skipping clover provides no test results

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm really confused by this thread as this is absolutely impossible with Sonar to skip clover or cobertura execution without  skipping unit tests execution. Perhaps your bamboo server runs unit tests on its side but definitely not Sonar.

If I'm wrong, just send your maven log file, it contains all the necessary information.

Thanks
Freddy

On Fri, Jul 10, 2009 at 7:14 PM, dr3s <amarch@...> wrote:

I'm not sure I follow your message.  The problem is when I skip clover, the
tests are run but their not show in sonar.  Your first cmd doesn't skip
clover and the second one in your message looks like it was copied from my
post.  Not sure if you are suggesting anything there.
--
View this message in context: http://www.nabble.com/skipping-clover-provides-no-test-results-tp24152107p24431459.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




Re: skipping clover provides no test results

by dr3s :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I can provide the log but as you can see by the cmd and the screenshots, it runs unit tests but skips clover.

Re: skipping clover provides no test results

by dr3s :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

log attached PDSSCA-SRQ4NGHTLY-111.log
dr3s wrote:
I can provide the log but as you can see by the cmd and the screenshots, it runs unit tests but skips clover.

Re: skipping clover provides no test results

by dr3s :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That had no effect.


I want you to add -Dsonar.skipInstall=true in your first command. For some reason it got deleted in my previous post.

This would reduce the build time avoid running twice.





dr3s wrote:
I'm not sure I follow your message.  The problem is when I skip clover, the tests are run but their not show in sonar.  Your first cmd doesn't skip clover and the second one in your message looks like it was copied from my post.  Not sure if you are suggesting anything there.


Re: skipping clover provides no test results

by dr3s :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just to reiterate, mvn clean test sonar:sonar -Dmaven.clover.skip=true -Dmaven.test.failure.ignore=true also doesn't show tests in sonar.

Bamboo isn't running anything but mvn clean sonar:sonar -Dmaven.clover.skip=true -Dmaven.test.failure.ignore=true right now and I have attached the log showing tests are run.

No matter what goals I run, if I have -Dmaven.clover.skip=true  on the cmd, tests don't get shown in sonar.

Re: skipping clover provides no test results

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Ok, I now better understand the issue even if I need to do further investigations in order to explain it :

- The Maven property "maven.clover.skip=true" doesn't really skip the Maven Clover execution, it just says to Clover : "doesn't instrument bytecode"
- The Clover Sonar plugin changes the Surfire report directory to target/clover/surfire-reports and try to collect reports from there
- But the Surfire Maven plugin generates its reports in the default directory target/surfire-reports instead of using target/clover/surfire-reports

It's why you don't get any measures on Unit Tests in the project Dashboard.

Regards,
Freddy


On Fri, Jul 10, 2009 at 7:36 PM, dr3s <amarch@...> wrote:

Just to reiterate, mvn clean test sonar:sonar -Dmaven.clover.skip=true
-Dmaven.test.failure.ignore=true also doesn't show tests in sonar.

Bamboo isn't running anything but mvn clean sonar:sonar
-Dmaven.clover.skip=true -Dmaven.test.failure.ignore=true right now and I
have attached the log showing tests are run.
--
View this message in context: http://www.nabble.com/skipping-clover-provides-no-test-results-tp24152107p24431780.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




Re: skipping clover provides no test results

by dr3s :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So can I enter a bug that when maven.clover.skip=true that the report location should remain to the default location?

Re: skipping clover provides no test results

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,

I confirm that you can create a JIRA ticket on this subject. In fact, when the maven.clover.skip=true is defined, Clover doesn't instrument bytecode but also doesn't "configure" Surfire plugin in order to generate surfire report in "target/clover/surfire-reports".

So, when Clover is used and maven.clover.skip=true is defined, Sonar shoud retrieve surfire reports in "target/surfire-reports".

Thanks for your help !
Freddy


On Mon, Jul 13, 2009 at 6:16 PM, dr3s <amarch@...> wrote:

So can I enter a bug that when maven.clover.skip=true that the report
location should remain to the default location?
--
View this message in context: http://www.nabble.com/skipping-clover-provides-no-test-results-tp24152107p24464749.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




Re: skipping clover provides no test results

by dr3s :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks everyone who helped on this thread! http://jira.codehaus.org/browse/SONAR-981 created and should be an easy fix
< Prev | 1 - 2 | Next >