« Return to Thread: skipping clover provides no test results
Freddy Mallet wrote:So, I guess your ultimate maven command line is :
mvn clean install sonar:sonar -Dmaven.test.failure.ignore=true
-Dmaven.clover.skip=true
-Dsonar.dynamicAnalysis=reuseReports
-Dsonar.surefire.reportsPath=${yourSurfireDir}
On Mon, Jun 22, 2009 at 9:58 PM, dr3s <amarch@qualcomm.com> wrote:
>
> Any way to make that on one line? I have two restrictions. One is that
> clover is part of a parent pom that I must use. The other is that Bamboo
> doesn't let you run two build commands. Its silly but that's the way it
> is.
>
>
> Freddy Mallet wrote:
> >
> > Ok, I can understand, so as I said, if you launch
> > mvn clean install
> >
> > and then
> >
> > mvn sonar:sonar
> > -Dsonar.dynamicAnalysis=reuseReports
> > -Dsonar.surefire.reportsPath=${yourSurfireDir}
> >
> > You should get exactly what you want.
> >
> > Freddy
> >
> >
> > On Mon, Jun 22, 2009 at 9:47 PM, dr3s <amarch@qualcomm.com> wrote:
> >
> >>
> >> 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+parameters
> >> >
> >> >
> >> > On 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
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/skipping-clover-provides-no-test-results-tp24152107p24154104.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
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/skipping-clover-provides-no-test-results-tp24152107p24154285.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
>
>
>
« Return to Thread: skipping clover provides no test results
| Free embeddable forum powered by Nabble | Forum Help |