skipping clover provides no test results

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

skipping clover provides no test results

by dr3s :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

Re: skipping clover provides no test results

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



On Mon, Jun 22, 2009 at 7:42 PM, dr3s <amarch@...> 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




Re: skipping clover provides no test results

by dr3s :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
>
>
>

Re: skipping clover provides no test results

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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@...> 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




Re: skipping clover provides no test results

by dr3s :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
>
>
>

Re: skipping clover provides no test results

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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@...> 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@...> 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@...> 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




Re: skipping clover provides no test results

by dr3s :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That made the build take twice as long but not show any test results in sonar.  Any other ideas?

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
>
>
>

Re: skipping clover provides no test results

by dr3s :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

By the way, this is a multi-module project and I'm also not seeing the component tree map on the dashboard for the project.  Projects that are multi-module but have clover and test results have the component tree map though.


That made the build take twice as long but not show any test results in sonar.  Any other ideas?

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
>
>
>


Re: skipping clover provides no test results

by Olivier Gaudin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can you send a screenshot ?

Olivier


On Mon, Jun 22, 2009 at 10:38 PM, dr3s <amarch@...> wrote:

By the way, this is a multi-module project and I'm also not seeing the
component tree map on the dashboard for the project.


dr3s wrote:
>
> That made the build take twice as long but not show any test results in
> sonar.  Any other ideas?
>
>
> 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@...> 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@...> 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@...> 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
>>>
>>>
>>>
>>
>>
>
>

--
View this message in context: http://www.nabble.com/skipping-clover-provides-no-test-results-tp24152107p24154977.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'll post 4.  FYI, this is a multi-module project but I looked at the timeline and it was working before (maybe in 1.8).  Should I open a bug report?

First, the bamboo test results shows that there was no problem finding the tests:


Next, the test xml files appear to be present in the correct directory:


Then, sonar shows 0 tests:


Finally, the sonar timeline shows that sometime after April 24th (dates not in image) the tests stopped being displayed:


Olivier Gaudin-2 wrote:
Can you send a screenshot ?

Olivier

Re: skipping clover provides no test results

by dr3s :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry just noticed that I have coverage metrics for the dates that I have tests, so I must have been running a different build command at that time (not skipping clover).  So I think the behavior of sonar has been consistent but still incorrect IMHO.

I guess I don't understand how sonar gets surefire results since they are obviously available for the build.

Re: skipping clover provides no test results

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As we have discussed several possible command line configurations, could you just remind me which command line you currently use to launch a Sonar analysis ?

Thanks
Freddy

On Fri, Jun 26, 2009 at 6:29 PM, dr3s <amarch@...> wrote:

Sorry just noticed that I have coverage metrics for the dates that I have
tests, so I must have been running a different build command at that time
(not skipping clover).  So I think the behavior of sonar has been consistent
but still incorrect IMHO.

I guess I don't understand how sonar gets surefire results since they are
obviously available for the build.
--
View this message in context: http://www.nabble.com/skipping-clover-provides-no-test-results-tp24152107p24223401.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

clean sonar:sonar -Dmaven.clover.skip=true -Dmaven.test.failure.ignore=true

Freddy Mallet wrote:
As we have discussed several possible command line configurations, could you
just remind me which command line you currently use to launch a Sonar
analysis ?
Thanks
Freddy

Re: skipping clover provides no test results

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


With this command line, unit tests aren't executed as Clover is skipped.

Just add a call to the "test" phase between "clean" and "sonar:sonar" and should get what you want.

mvn clean test sonar:sonar -Dmaven.clover.skip=true -Dmaven.test.failure.ignore=
true

Hope it helps,
Freddy

On Mon, Jun 29, 2009 at 6:55 PM, dr3s <amarch@...> wrote:

clean sonar:sonar -Dmaven.clover.skip=true -Dmaven.test.failure.ignore=true


Freddy Mallet wrote:
>
> As we have discussed several possible command line configurations, could
> you
> just remind me which command line you currently use to launch a Sonar
> analysis ?
> Thanks
> Freddy
>
>
>

--
View this message in context: http://www.nabble.com/skipping-clover-provides-no-test-results-tp24152107p24257854.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 Olivier Gaudin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Did you try to run : mvn clean test sonar:sonar -Dmaven.clover.skip=true -Dmaven.test.failure.ignore=true

as recommended per Freddy ?

Olivier



On Fri, Jun 26, 2009 at 6:12 PM, dr3s <amarch@...> wrote:

I'll post 4.  FYI, this is a multi-module project but I looked at the
timeline and it was working before (maybe in 1.8).  Should I open a bug
report?

First, the bamboo test results shows that there was no problem finding the
tests:
http://www.nabble.com/file/p24223058/bamboo-tests.png

Next, the test xml files appear to be present in the correct directory:
http://www.nabble.com/file/p24223058/bamboo-test-xml.png

Then, sonar shows 0 tests:
http://www.nabble.com/file/p24223058/sonar-missing-test.png

Finally, the sonar timeline shows that sometime after April 24th (dates not
in image) the tests stopped being displayed:
http://www.nabble.com/file/p24223058/sonar-test-timeline.png


Olivier Gaudin-2 wrote:
>
> Can you send a screenshot ?
>
> Olivier
>
>
--
View this message in context: http://www.nabble.com/skipping-clover-provides-no-test-results-tp24152107p24223058.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

Just a recap:

* The screenshots from my previous post show the tests are being executed with 'mvn clean sonar:sonar -Dmaven.clover.skip=true -Dmaven.test.failure.ignore=true'  but sonar doesn't show them.
* The cmd 'mvn clean install sonar:sonar -Dmaven.test.failure.ignore=true -Dmaven.clover.skip=true -Dsonar.dynamicAnalysis=reuseReports -Dsonar.surefire.reportsPath=${yourSurfireDir}' made the build take twice as long, test were run, but sonar doesn't show them.
* The cmd 'mvn clean test sonar:sonar -Dmaven.clover.skip=true -Dmaven.test.failure.ignore=true' fails the build because of an aspectj, clover, mvn incompatibility.

Freddy Mallet wrote:
With this command line, unit tests aren't executed as Clover is skipped.

Just add a call to the "test" phase between "clean" and "sonar:sonar" and
should get what you want.

mvn clean test sonar:sonar -Dmaven.clover.skip=true
-Dmaven.test.failure.ignore=true

Hope it helps,
Freddy

On Mon, Jun 29, 2009 at 6:55 PM, dr3s <amarch@qualcomm.com> wrote:

>
> clean sonar:sonar -Dmaven.clover.skip=true -Dmaven.test.failure.ignore=true
>
>
> Freddy Mallet wrote:
> >
> > As we have discussed several possible command line configurations, could
> > you
> > just remind me which command line you currently use to launch a Sonar
> > analysis ?
> > Thanks
> > Freddy
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/skipping-clover-provides-no-test-results-tp24152107p24257854.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

yes, see http://www.nabble.com/forum/ViewPost.jtp?post=24311134&framed=y 
Olivier Gaudin-2 wrote:
Did you try to run : mvn clean test sonar:sonar -Dmaven.clover.skip=true
-Dmaven.test.failure.ignore=true

as recommended per Freddy ?

Olivier



On Fri, Jun 26, 2009 at 6:12 PM, dr3s <amarch@qualcomm.com> wrote:

>
> I'll post 4.  FYI, this is a multi-module project but I looked at the
> timeline and it was working before (maybe in 1.8).  Should I open a bug
> report?
>
> First, the bamboo test results shows that there was no problem finding the
> tests:
> http://www.nabble.com/file/p24223058/bamboo-tests.png
>
> Next, the test xml files appear to be present in the correct directory:
> http://www.nabble.com/file/p24223058/bamboo-test-xml.png
>
> Then, sonar shows 0 tests:
> http://www.nabble.com/file/p24223058/sonar-missing-test.png
>
> Finally, the sonar timeline shows that sometime after April 24th (dates not
> in image) the tests stopped being displayed:
> http://www.nabble.com/file/p24223058/sonar-test-timeline.png
>
>
> Olivier Gaudin-2 wrote:
> >
> > Can you send a screenshot ?
> >
> > Olivier
> >
> >
> --
> View this message in context:
> http://www.nabble.com/skipping-clover-provides-no-test-results-tp24152107p24223058.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 Lucky2009 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have been play around with bamboo , maven, clover, cobertura, findbugs and sonar for a while. This is the configuration I use. clean clover2:instrument clover2:aggregate clover2:clover sonar:sonar -Dsonar.clover.reportPath=\target\site\clover -Dsonar.core.codeCoveragePlugin=clover -Dmaven.clover.licenseLocation=d:\clover\license\ valid clover license is must for sonar to call clover collector. you can provide the clover license path in maven pom also. check you onar.surefire.reportsPath path. If you use clover, it should be target\clover\surefire-report not target\surefire-report. To reduce build time, you can use -Dsonar.skipInstall=true. This way it won't run the complete install twice. mvn clean install sonar:sonar -Dmaven.test.failure.ignore=true -Dmaven.clover.skip=true -Dsonar.dynamicAnalysis=reuseReports -Dsonar.surefire.reportsPath=${yourSurfireDir}' -D try it out. -Lakshmanan
dr3s wrote:
Just a recap: * The screenshots from my previous post show the tests are being executed with 'mvn clean sonar:sonar -Dmaven.clover.skip=true -Dmaven.test.failure.ignore=true' but sonar doesn't show them. * The cmd 'mvn clean install sonar:sonar -Dmaven.test.failure.ignore=true -Dmaven.clover.skip=true -Dsonar.dynamicAnalysis=reuseReports -Dsonar.surefire.reportsPath=${yourSurfireDir}' made the build take twice as long, test were run, but sonar doesn't show them. * The cmd 'mvn clean test sonar:sonar -Dmaven.clover.skip=true -Dmaven.test.failure.ignore=true' fails the build because of an aspectj, clover, mvn incompatibility.
Freddy Mallet wrote:
With this command line, unit tests aren't executed as Clover is skipped. Just add a call to the "test" phase between "clean" and "sonar:sonar" and should get what you want. mvn clean test sonar:sonar -Dmaven.clover.skip=true -Dmaven.test.failure.ignore=true Hope it helps, Freddy On Mon, Jun 29, 2009 at 6:55 PM, dr3s wrote: > > clean sonar:sonar -Dmaven.clover.skip=true -Dmaven.test.failure.ignore=true > > > Freddy Mallet wrote: > > > > As we have discussed several possible command line configurations, could > > you > > just remind me which command line you currently use to launch a Sonar > > analysis ? > > Thanks > > Freddy > > > > > > > > -- > View this message in context: > http://www.nabble.com/skipping-clover-provides-no-test-results-tp24152107p24257854.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'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 Lucky2009 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.
< Prev | 1 - 2 | Next >