coverage using superfire reports

View: New views
2 Messages — Rating Filter:   Alert me  

coverage using superfire reports

by pitaeva :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi all,

 

I am using the sonar version 1.11.1 for our ant based project.

At the moment I am getting the value for coverage 0.

I have configured maven-pom to use our existing superfire-reports in this way:

<properties>

    <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>

    <sonar.surefire.reportsPath>reports/junit/tests</sonar.surefire.reportsPath>

</properties>

From the debug-information on the console,

I can see that the parsing of the reports is done without errors.

What could cause the problem?

 

Many thanks in advance!

 

Kind regards,

 

Anna Pitaev
_________________________________________
Logica - Releasing your potential

Logica Deutschland GmbH & Co.
KG
Rheinstrasse 95
64295 Darmstadt
Germany
Tel.: +49 6151 36860-121
E-Mail:  anna.pitaev@...
www.logica.com

Logica Deutschland GmbH & Co. KG
Zettachring 4, 70567 Stuttgart; Amtsgericht Stuttgart HRA 722072
Persönlich haftender Gesellschafter: Logica Verwaltungs GmbH

Geschäftsführer: Torsten Straß (Vors.) / Dr. Thomas Elsner / Eric Guyot / Andreas Manganaro / Olaf Scholz / Oliver Starzonek; Handelsregister  AG Stuttgart  HRB 724084

 


Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. / Por favor ajude a Logica a respeitar o ambiente não imprimindo este correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

Re: coverage using superfire reports

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Anna,

Surfire reports don't contain metrics on code coverage but only the number of unit tests, unit tests in error, etc.. If you want to get information on code coverage, you must execute Cobertura and then tell to Sonar where to find this report with the sonar.cobertura.reportPath.

regards,
Freddy

On Wed, Oct 21, 2009 at 3:35 PM, Pitaev, Anna <anna.pitaev@...> wrote:

Hi all,

 

I am using the sonar version 1.11.1 for our ant based project.

At the moment I am getting the value for coverage 0.

I have configured maven-pom to use our existing superfire-reports in this way:

<properties>

    <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>

    <sonar.surefire.reportsPath>reports/junit/tests</sonar.surefire.reportsPath>

</properties>

From the debug-information on the console,

I can see that the parsing of the reports is done without errors.

What could cause the problem?

 

Many thanks in advance!

 

Kind regards,

 

Anna Pitaev
_________________________________________
Logica - Releasing your potential

Logica Deutschland GmbH & Co.
KG
Rheinstrasse 95
64295 Darmstadt
Germany
Tel.: +49 6151 36860-121
E-Mail:  anna.pitaev@...
www.logica.com

Logica Deutschland GmbH & Co. KG
Zettachring 4, 70567 Stuttgart; Amtsgericht Stuttgart HRA 722072
Persönlich haftender Gesellschafter: Logica Verwaltungs GmbH

Geschäftsführer: Torsten Straß (Vors.) / Dr. Thomas Elsner / Eric Guyot / Andreas Manganaro / Olaf Scholz / Oliver Starzonek; Handelsregister  AG Stuttgart  HRB 724084

 


Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. / Por favor ajude a Logica a respeitar o ambiente não imprimindo este correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.