Quantcast

Issue With OpenCover on a C#codebase (0% coverage but coverage-report.xml beggs to differ)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Issue With OpenCover on a C#codebase (0% coverage but coverage-report.xml beggs to differ)

VincentT

Hello,

 

I’m trying to use opencover with the the C# plugins 1.3 on a server 2008R2 box with sonar-3.1.1.

 

The OpenCover analysis is launched through Gallio, some cover results are even performed (see below).

 

However, my coverage dashboard on localhost:9000 keeps telling 0.0% without any mentions of the unit tests (NUnit, by the way)

 

Any idea on this?

 

Thanks,

Vincent

 

16:44:16.630 INFO  .u.c.CommandExecutor - Initializing the runtime and loading plugins.

16:44:19.662 INFO  .u.c.CommandExecutor - Verifying test files.

16:44:20.021 INFO  .u.c.CommandExecutor - Initializing the test runner.

16:44:20.052 INFO  .u.c.CommandExecutor - Running the tests.

16:45:00.927 INFO  .u.c.CommandExecutor - Generating reports.

16:45:04.912 INFO  .u.c.CommandExecutor - Disposing the test runner.

16:45:04.912 INFO  .u.c.CommandExecutor - Stop time: 4:45 PM (Total execution time: 48.579 seconds)

16:45:04.912 INFO  .u.c.CommandExecutor -

16:45:04.990 INFO  .u.c.CommandExecutor - 7 run, 7 passed, 0 failed, 0 inconclusive, 0 skipped

16:45:04.990 INFO  .u.c.CommandExecutor -

16:45:05.396 INFO  .u.c.CommandExecutor - Committing...

16:45:07.755 INFO  .u.c.CommandExecutor - Visited Classes 6 of 14 (42.8571428571429)

16:45:07.771 INFO  .u.c.CommandExecutor - Visited Methods 20 of 58 (34.4827586206897)

16:45:07.771 INFO  .u.c.CommandExecutor - Visited Points 65 of 234 (27.7777777777778)

16:45:07.771 INFO  .u.c.CommandExecutor - Visited Branches 20 of 118 (16.9491525423729)

 

16:46:17.333 INFO  .b.p.UpdateStatusJob - ANALYSIS SUCCESSFUL, you can browse http://localhost:9000

 

 

 

Description: Description : obs

 

Vincent Tollu
Architecte Logiciel .NET

Equipe Architecture et Expertise Technique du SI

tel. +33 (0)2 99 87 16 78 (poste: 4678)
[hidden email]
IT&L@bs

Orange Avenue, 125 Boulevard Albert 1er  35000 Rennes
www.orange-business.com

 

Description: Description : ft

 

_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified.
Thank you.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue With OpenCover on a C#codebase (0% coverage but coverage-report.xml beggs to differ)

Fabrice Bellingard-4
Hi Vincent,

could you send the test and coverage report files that were generated during the build?


Best regards,

Fabrice BELLINGARD | SonarSource
http://sonarsource.com



On Thu, Jul 5, 2012 at 4:59 PM, <[hidden email]> wrote:

Hello,

 

I’m trying to use opencover with the the C# plugins 1.3 on a server 2008R2 box with sonar-3.1.1.

 

The OpenCover analysis is launched through Gallio, some cover results are even performed (see below).

 

However, my coverage dashboard on localhost:9000 keeps telling 0.0% without any mentions of the unit tests (NUnit, by the way)

 

Any idea on this?

 

Thanks,

Vincent

 

16:44:16.630 INFO  .u.c.CommandExecutor - Initializing the runtime and loading plugins.

16:44:19.662 INFO  .u.c.CommandExecutor - Verifying test files.

16:44:20.021 INFO  .u.c.CommandExecutor - Initializing the test runner.

16:44:20.052 INFO  .u.c.CommandExecutor - Running the tests.

16:45:00.927 INFO  .u.c.CommandExecutor - Generating reports.

16:45:04.912 INFO  .u.c.CommandExecutor - Disposing the test runner.

16:45:04.912 INFO  .u.c.CommandExecutor - Stop time: 4:45 PM (Total execution time: 48.579 seconds)

16:45:04.912 INFO  .u.c.CommandExecutor -

16:45:04.990 INFO  .u.c.CommandExecutor - 7 run, 7 passed, 0 failed, 0 inconclusive, 0 skipped

16:45:04.990 INFO  .u.c.CommandExecutor -

16:45:05.396 INFO  .u.c.CommandExecutor - Committing...

16:45:07.755 INFO  .u.c.CommandExecutor - Visited Classes 6 of 14 (42.8571428571429)

16:45:07.771 INFO  .u.c.CommandExecutor - Visited Methods 20 of 58 (34.4827586206897)

16:45:07.771 INFO  .u.c.CommandExecutor - Visited Points 65 of 234 (27.7777777777778)

16:45:07.771 INFO  .u.c.CommandExecutor - Visited Branches 20 of 118 (16.9491525423729)

 

16:46:17.333 INFO  .b.p.UpdateStatusJob - ANALYSIS SUCCESSFUL, you can browse http://localhost:9000

 

 

 

Description: Description : obs

 

Vincent Tollu
Architecte Logiciel .NET

Equipe Architecture et Expertise Technique du SI

tel. <a href="tel:%2B33%20%280%292%2099%2087%2016%2078" value="+33299871678" target="_blank">+33 (0)2 99 87 16 78 (poste: 4678)
[hidden email]
IT&L@bs

Orange Avenue, 125 Boulevard Albert 1er  35000 Rennes
www.orange-business.com

 

Description: Description : ft

 

_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Issue With OpenCover on a C#codebase (0% coverage but coverage-report.xml beggs to differ)

VincentT

The error is due to the usage of a Jenkins plugin, which is ‘Clone Workspace SCM’ If the sonar analysis is performed within a _cloned_ workspace, there are no Coverage figures reported.

 

On the contrary, if the analysis is performed within the build folder, Coverage works flawlessly.

 

Thanks a lot to Fabrice for leading me to the solution,

 

Vincent

 

From: Fabrice Bellingard [mailto:[hidden email]]
Sent: vendredi 6 juillet 2012 09:29
To: [hidden email]
Subject: Re: [sonar-user] Issue With OpenCover on a C#codebase (0% coverage but coverage-report.xml beggs to differ)

 

Hi Vincent,

 

could you send the test and coverage report files that were generated during the build?


 

Best regards,

 

Fabrice BELLINGARD | SonarSource
http://sonarsource.com



On Thu, Jul 5, 2012 at 4:59 PM, <[hidden email]> wrote:

Hello,

 

I’m trying to use opencover with the the C# plugins 1.3 on a server 2008R2 box with sonar-3.1.1.

 

The OpenCover analysis is launched through Gallio, some cover results are even performed (see below).

 

However, my coverage dashboard on localhost:9000 keeps telling 0.0% without any mentions of the unit tests (NUnit, by the way)

 

Any idea on this?

 

Thanks,

Vincent

 

16:44:16.630 INFO  .u.c.CommandExecutor - Initializing the runtime and loading plugins.

16:44:19.662 INFO  .u.c.CommandExecutor - Verifying test files.

16:44:20.021 INFO  .u.c.CommandExecutor - Initializing the test runner.

16:44:20.052 INFO  .u.c.CommandExecutor - Running the tests.

16:45:00.927 INFO  .u.c.CommandExecutor - Generating reports.

16:45:04.912 INFO  .u.c.CommandExecutor - Disposing the test runner.

16:45:04.912 INFO  .u.c.CommandExecutor - Stop time: 4:45 PM (Total execution time: 48.579 seconds)

16:45:04.912 INFO  .u.c.CommandExecutor -

16:45:04.990 INFO  .u.c.CommandExecutor - 7 run, 7 passed, 0 failed, 0 inconclusive, 0 skipped

16:45:04.990 INFO  .u.c.CommandExecutor -

16:45:05.396 INFO  .u.c.CommandExecutor - Committing...

16:45:07.755 INFO  .u.c.CommandExecutor - Visited Classes 6 of 14 (42.8571428571429)

16:45:07.771 INFO  .u.c.CommandExecutor - Visited Methods 20 of 58 (34.4827586206897)

16:45:07.771 INFO  .u.c.CommandExecutor - Visited Points 65 of 234 (27.7777777777778)

16:45:07.771 INFO  .u.c.CommandExecutor - Visited Branches 20 of 118 (16.9491525423729)

 

16:46:17.333 INFO  .b.p.UpdateStatusJob - ANALYSIS SUCCESSFUL, you can browse http://localhost:9000

 

 

 

Description: Description : obs

 

Vincent Tollu
Architecte Logiciel .NET

Equipe Architecture et Expertise Technique du SI

tel. <a href="tel:%2B33%20%280%292%2099%2087%2016%2078" target="_blank">+33 (0)2 99 87 16 78 (poste: 4678)
[hidden email]
IT&L@bs

Orange Avenue, 125 Boulevard Albert 1er  35000 Rennes
www.orange-business.com

 

Description: Description : ft

 

_________________________________________________________________________________________________________________________
 
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
 
This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

 

_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified.
Thank you.
Loading...