Discussion:
Sonar display 0% code coverage for C# project
Irfan Khan
2013-03-08 05:49:05 UTC
Permalink
Hi,

I am doing sonar analysis on C# project. I am using using Galilo and
OpenCover. But I am getting 0% for the code coverage.

My sonar-project.properties file content.
#This File is used as input for sonar code analysis and unit testing
#Please do not delete!

#Default source code encoding
sonar.sourceEncoding=UTF-8

# Project identification
sonar.projectKey=CG:BankingProject
sonar.projectVersion=Sonar - Banking_20130308.1
sonar.projectName=Banking Project

# Info required for Sonar
sonar.sources=.
sonar.language=cs

# C# core settings
sonar.dotnet.4.0.sdk.directory=C:/WIndows/Microsoft.NET/Framework/v4.0.30319
sonar.dotnet.version=4.0

# Gallio
#sonar.gallio.mode=
#sonar.gallio.coverage.tool=OpenCover
sonar.gallio.runner=IsolatedProcess
sonar.dotnet.test.assemblies=C:/Builds/3/Demo Projects/Sonar -
Banking/Binaries/*Test*.*
sonar.donet.visualstudio.testProjectPattern=*UnitTests*;*test*;*Test*
sonar.gallio.filter=*
////////////////////////////////////////////////

Output of my sonar-runner
--------------------------
07)
10:30:15.208 INFO org.sonar.INFO - Compare over 5 days (2013-03-03,
analy
sis of 2013-03-04 19:29:17.891)
10:30:15.243 INFO org.sonar.INFO - Compare over 30 days (2013-02-06,
anal
ysis of 2013-02-25 17:43:23.521)
10:30:15.371 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger...

10:30:15.377 INFO jectFileSystemLogger - Source directories:
10:30:15.378 INFO jectFileSystemLogger - C:\Builds\3\Demo Projects\Sonar
- Ba
nking\Sources\Banking Project\mybank1
10:30:15.380 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger do
ne: 10 ms
10:30:15.381 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer..
.
10:30:15.389 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer d
one: 8 ms
10:30:15.477 INFO .VisualStudioProject - Skipping the non generated
assembly of
project : mybank1
10:30:15.478 WARN tRegularCSharpSensor - No assembly to check with Gendarme
10:30:15.495 INFO .VisualStudioProject - Skipping the non generated
assembly of
project : mybank1
10:30:15.497 WARN tRegularCSharpSensor - No assembly to check with FxCop
10:30:15.512 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.core.C
***@750bff35...
10:30:15.737 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.core.C
***@750bff35 done: 225 ms
10:30:15.738 INFO p.PhasesTimeProfiler - Sensor
com.sonar.plugins.csharp.squid.
***@5dba8ac5...
10:30:16.260 INFO p.PhasesTimeProfiler - Sensor
com.sonar.plugins.csharp.squid.
***@5dba8ac5 done: 522 ms
10:30:16.261 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
***@57e22eea...
10:30:16.319 INFO .u.c.CommandExecutor - Executing command: C:\Program
Files (x
86)\OpenCover\OpenCover.Console.exe -register:user
-target:C:\Progra~1\Gallio\bi
n\Gallio.Echo.exe -targetdir:C:\Builds\3\Demo Projects\Sonar -
Banking\Sources\B
anking Project\.sonar "-targetargs:\"/r:IsolatedProcess\"
\"/report-directory:C:
\Builds\3\Demo Projects\Sonar - Banking\Sources\Banking Project\.sonar\"
\"/repo
rt-name-format:gallio-report\" \"/report-type:Xml\" \"/f:*\"
\"C:\Builds\3\Demo
Projects\Sonar - Banking\Binaries\BankingTestProject.pdb\"
\"C:\Builds\3\Demo Pr
ojects\Sonar - Banking\Binaries\BankingTestProject.dll\""
"-filter:+[mybank1]* +
[BankPayRoll]* " -mergebyhash -output:C:\Builds\3\Demo Projects\Sonar -
Banking\
Sources\Banking Project\.sonar\coverage-report.xml
10:30:28.934 INFO .u.c.CommandExecutor -
10:30:28.987 INFO .u.c.CommandExecutor - Gallio Echo - Version 3.4 build 11
10:30:28.990 INFO .u.c.CommandExecutor - Get the latest version at
http://www.g
allio.org/
10:30:28.991 INFO .u.c.CommandExecutor -
10:30:34.021 INFO .u.c.CommandExecutor - Start time: 10:30
10:30:34.037 INFO .u.c.CommandExecutor - Initializing the runtime and
loading p
lugins.
10:30:37.202 INFO .u.c.CommandExecutor - Verifying test files.
10:30:37.902 INFO .u.c.CommandExecutor - Initializing the test runner.
10:30:37.926 INFO .u.c.CommandExecutor - Running the tests.
10:30:38.780 INFO .u.c.CommandExecutor - [warning] File
'BankingTestProject.pdb
' is not supported by any installed test framework. It will be ignored.
10:30:38.783 INFO .u.c.CommandExecutor - Location: C:\Builds\3\Demo
Proje
cts\Sonar - Banking\Binaries\BankingTestProject.pdb
10:30:38.925 INFO .u.c.CommandExecutor - [ignored] Unsupported
BankingTestProje
ct.pdb
10:30:38.926 INFO .u.c.CommandExecutor - This test is not supported by any
avai
lable test framework.
10:30:38.927 INFO .u.c.CommandExecutor -
10:31:13.803 INFO .u.c.CommandExecutor - Generating reports.
10:31:16.043 INFO .u.c.CommandExecutor - Disposing the test runner.
10:31:16.048 INFO .u.c.CommandExecutor - Stop time: 10:31 (Total execution
time
: 42.180 seconds)
10:31:16.051 INFO .u.c.CommandExecutor -
10:31:16.098 INFO .u.c.CommandExecutor - 1 run, 1 passed, 0 failed, 0
inconclus
ive, 1 skipped (1 ignored)
10:31:16.099 INFO .u.c.CommandExecutor -
10:31:16.823 INFO .u.c.CommandExecutor - Committing...
10:31:18.457 INFO .u.c.CommandExecutor - No results - no assemblies that
matche
d the supplied filter were instrumented
10:31:18.459 INFO .u.c.CommandExecutor - this could be due to missing
PDBs
for the assemblies that match the filter
10:31:18.460 INFO .u.c.CommandExecutor - please review the output file
and
refer to the Usage guide (Usage.rtf)
10:31:21.966 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
***@57e22eea done: 65705 ms
10:31:21.969 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.stylec
op.StyleCopSensor$***@1ecbb96...
10:31:22.433 INFO leCopProfileExporter - No custom analyzers settings
10:31:22.492 INFO d.t.s.StyleCopRunner - StyleCop install folder not found:
'C:
\Program Files\StyleCop 4.7'. The embedded version (4.7.34.0) will be used
inste
ad.
10:31:22.513 INFO .u.c.CommandExecutor - Executing command:
C:\WIndows\Microsof
t.NET\Framework\v4.0.30319\MSBuild.exe /p:AppRoot=C:\Builds\3\Demo
Projects\Sona
r - Banking\Sources\Banking Project /target:StyleCopLaunch /noconsolelogger
C:\B
uilds\3\Demo Projects\Sonar - Banking\Sources\Banking
Project\mybank1\.sonar\sty
lecop-msbuild.xml
10:31:24.924 INFO .u.c.CommandExecutor - Microsoft (R) Build Engine version
4.0
.30319.17929
10:31:24.925 INFO .u.c.CommandExecutor - [Microsoft .NET Framework, version
4.0
.30319.17929]
10:31:24.925 INFO .u.c.CommandExecutor - Copyright (C) Microsoft
Corporation. A
ll rights reserved.
10:31:24.926 INFO .u.c.CommandExecutor -
10:31:31.363 WARN StyleCopResultParser - Could not find the following rule
in t
he StyleCop rule repository:
StyleCop.CSharp.LayoutRules#ElementMustNotBeOnSingl
eLine
10:31:31.447 WARN o.s.b.i.DefaultIndex - Resource will be ignored in next
Sonar
versions, index is locked:
***@3e1d2ca0[key=Form1.Desi
gner.cs,dir=<null>,filename=Form1.Designer.cs,language=<null>]
10:31:31.517 WARN o.s.b.i.DefaultIndex - Resource will be ignored in next
Sonar
versions, index is locked:
***@12a1d4c5[key=Form2.Desi
gner.cs,dir=<null>,filename=Form2.Designer.cs,language=<null>]
10:31:31.532 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.stylec
op.StyleCopSensor$***@1ecbb96 done: 9563 ms
10:31:31.533 INFO p.PhasesTimeProfiler - Sensor CpdSensor...
10:31:31.533 INFO o.s.p.cpd.CpdSensor - SonarBridgeEngine is used
10:31:31.546 INFO s.p.c.i.IndexFactory - Cross-project analysis disabled
10:31:32.039 INFO p.PhasesTimeProfiler - Sensor CpdSensor done: 506 ms
10:31:32.040 INFO p.PhasesTimeProfiler - Sensor ProfileSensor...
10:31:34.439 INFO p.PhasesTimeProfiler - Sensor ProfileSensor done: 2399 ms
10:31:34.440 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor...
10:31:34.660 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor done:
220 m
s
10:31:34.661 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor...
10:31:34.849 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor done:
188 m
s
10:31:34.852 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
***@427631b9...
10:31:35.107 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
***@427631b9 done: 255 ms
10:31:35.808 INFO p.PhasesTimeProfiler - Execute decorators...
10:31:37.793 INFO .s.b.b.ProjectModule - ------------- Analyzing
BankPayRoll
10:31:38.600 INFO .s.b.ProfileProvider - Selected quality profile :
[name=Sonar
C# Way,language=cs]
10:31:38.615 INFO nPluginsConfigurator - Configure maven plugins...
10:31:38.731 INFO org.sonar.INFO - Compare to previous analysis
(2013-03-
07)
10:31:38.767 INFO org.sonar.INFO - Compare over 5 days (2013-03-03,
analy
sis of 2013-03-04 19:29:17.898)
10:31:38.798 INFO org.sonar.INFO - Compare over 30 days (2013-02-06,
anal
ysis of 2013-02-25 17:43:23.617)
10:31:38.831 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger...

10:31:38.837 INFO jectFileSystemLogger - Source directories:
10:31:38.843 INFO jectFileSystemLogger - C:\Builds\3\Demo Projects\Sonar
- Ba
nking\Sources\Banking Project\BankPayRoll
10:31:38.844 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger do
ne: 13 ms
10:31:38.844 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer..
.
10:31:38.845 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer d
one: 1 ms
10:31:38.847 INFO s.p.c.g.GallioSensor - Gallio won't execute as test
execution
has already been done.
10:31:38.873 INFO .VisualStudioProject - Skipping the non generated
assembly of
project : BankPayRoll
10:31:38.874 WARN tRegularCSharpSensor - No assembly to check with Gendarme
10:31:38.881 INFO .VisualStudioProject - Skipping the non generated
assembly of
project : BankPayRoll
10:31:38.881 WARN tRegularCSharpSensor - No assembly to check with FxCop
10:31:38.887 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.core.C
***@33d8ecf3...
10:31:39.106 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.core.C
***@33d8ecf3 done: 219 ms
10:31:39.107 INFO p.PhasesTimeProfiler - Sensor
com.sonar.plugins.csharp.squid.
***@727a80e3...
10:31:39.137 INFO p.PhasesTimeProfiler - Sensor
com.sonar.plugins.csharp.squid.
***@727a80e3 done: 30 ms
10:31:39.138 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
***@70b8c4b5...
10:31:39.145 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
***@70b8c4b5 done: 7 ms
10:31:39.148 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.stylec
op.StyleCopSensor$***@48a3f1cc...
10:31:39.178 INFO leCopProfileExporter - No custom analyzers settings
10:31:39.192 INFO d.t.s.StyleCopRunner - StyleCop install folder not found:
'C:
\Program Files\StyleCop 4.7'. The embedded version (4.7.34.0) will be used
inste
ad.
10:31:39.222 INFO .u.c.CommandExecutor - Executing command:
C:\WIndows\Microsof
t.NET\Framework\v4.0.30319\MSBuild.exe /p:AppRoot=C:\Builds\3\Demo
Projects\Sona
r - Banking\Sources\Banking Project /target:StyleCopLaunch /noconsolelogger
C:\B
uilds\3\Demo Projects\Sonar - Banking\Sources\Banking
Project\BankPayRoll\.sonar
\stylecop-msbuild.xml
10:31:39.357 INFO .u.c.CommandExecutor - Microsoft (R) Build Engine version
4.0
.30319.17929
10:31:39.358 INFO .u.c.CommandExecutor - [Microsoft .NET Framework, version
4.0
.30319.17929]
10:31:39.358 INFO .u.c.CommandExecutor - Copyright (C) Microsoft
Corporation. A
ll rights reserved.
10:31:39.359 INFO .u.c.CommandExecutor -
10:31:40.766 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.stylec
op.StyleCopSensor$***@48a3f1cc done: 1618 ms
10:31:40.767 INFO p.PhasesTimeProfiler - Sensor CpdSensor...
10:31:40.768 INFO o.s.p.cpd.CpdSensor - SonarBridgeEngine is used
10:31:40.773 INFO s.p.c.i.IndexFactory - Cross-project analysis disabled
10:31:40.786 INFO p.PhasesTimeProfiler - Sensor CpdSensor done: 19 ms
10:31:40.787 INFO p.PhasesTimeProfiler - Sensor ProfileSensor...
10:31:41.929 INFO p.PhasesTimeProfiler - Sensor ProfileSensor done: 1142 ms
10:31:41.930 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor...
10:31:41.950 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor done:
20 ms

10:31:41.951 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor...
10:31:41.959 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor done: 7
ms
10:31:42.518 INFO p.PhasesTimeProfiler - Execute decorators...
10:31:42.812 INFO .s.b.b.ProjectModule - ------------- Analyzing
BankingTestPr
oject
10:31:43.748 INFO .s.b.ProfileProvider - Selected quality profile :
[name=Sonar
C# Way,language=cs]
10:31:43.761 INFO nPluginsConfigurator - Configure maven plugins...
10:31:43.805 INFO org.sonar.INFO - Compare to previous analysis
(2013-03-
07)
10:31:43.843 INFO org.sonar.INFO - Compare over 5 days (2013-03-03,
analy
sis of 2013-03-07 13:01:41.384)
10:31:43.864 INFO org.sonar.INFO - Compare over 30 days (2013-02-06,
anal
ysis of 2013-03-07 13:01:41.384)
10:31:43.881 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger...

10:31:43.882 INFO jectFileSystemLogger - Test directories:
10:31:43.882 INFO jectFileSystemLogger - C:\Builds\3\Demo Projects\Sonar
- Ba
nking\Sources\Banking Project\BankingTestProject
10:31:43.883 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger do
ne: 2 ms
10:31:43.883 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer..
.
10:31:43.884 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer d
one: 1 ms
10:31:43.885 INFO s.p.c.g.GallioSensor - Gallio won't execute as test
execution
has already been done.
10:31:43.896 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.core.C
***@21466939...
10:31:43.961 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.core.C
***@21466939 done: 65 ms
10:31:43.963 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
***@4d12a3ca...
10:31:44.000 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
***@4d12a3ca done: 37 ms
10:31:44.000 INFO p.PhasesTimeProfiler - Sensor CpdSensor...
10:31:44.001 INFO o.s.p.cpd.CpdSensor - SonarBridgeEngine is used
10:31:44.001 INFO p.PhasesTimeProfiler - Sensor CpdSensor done: 1 ms
10:31:44.001 INFO p.PhasesTimeProfiler - Sensor ProfileSensor...
10:31:44.419 INFO p.PhasesTimeProfiler - Sensor ProfileSensor done: 418 ms
10:31:44.420 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor...
10:31:44.425 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor done: 5
ms
10:31:44.426 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor...
10:31:44.547 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor done:
121 m
s
10:31:44.728 INFO p.PhasesTimeProfiler - Execute decorators...
10:31:44.986 INFO .s.b.b.ProjectModule - ------------- Analyzing Banking
Proje
ct
10:31:45.580 INFO .s.b.ProfileProvider - Selected quality profile :
[name=Sonar
C# Way,language=cs]
10:31:45.592 INFO nPluginsConfigurator - Configure maven plugins...
10:31:45.605 INFO org.sonar.INFO - Compare to previous analysis
(2013-03-
07)
10:31:45.617 INFO org.sonar.INFO - Compare over 5 days (2013-03-03,
analy
sis of 2013-03-04 19:29:17.48)
10:31:45.623 INFO org.sonar.INFO - Compare over 30 days (2013-02-06,
anal
ysis of 2013-02-25 17:43:20.002)
10:31:45.639 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger...

10:31:45.640 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger do
ne: 1 ms
10:31:45.641 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer..
.
10:31:45.641 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer d
one: 0 ms
10:31:45.642 INFO s.p.c.g.GallioSensor - Gallio won't execute as test
execution
has already been done.
10:31:45.643 INFO p.PhasesTimeProfiler - Sensor CpdSensor...
10:31:45.643 INFO o.s.p.cpd.CpdSensor - SonarBridgeEngine is used
10:31:45.649 INFO p.PhasesTimeProfiler - Sensor CpdSensor done: 6 ms
10:31:45.650 INFO p.PhasesTimeProfiler - Sensor ProfileSensor...
10:31:46.191 INFO p.PhasesTimeProfiler - Sensor ProfileSensor done: 541 ms
10:31:46.192 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor...
10:31:46.200 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor done: 8
ms
10:31:46.201 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor...
10:31:46.212 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor done:
11 ms

10:31:46.646 INFO p.PhasesTimeProfiler - Execute decorators...
10:31:47.061 INFO .b.p.UpdateStatusJob - ANALYSIS SUCCESSFUL, you can
browse ht
tp://localhost:9000
10:31:47.079 INFO b.p.PostJobsExecutor - Executing post-job class
org.sonar.plu
gins.core.batch.IndexProjectPostJob
10:31:47.156 INFO b.p.PostJobsExecutor - Executing post-job class
org.sonar.plu
gins.dbcleaner.ProjectPurgePostJob
10:31:47.192 INFO .p.d.p.KeepOneFilter - -> Keep one snapshot per day
between 2
013-02-08 and 2013-03-07
10:31:47.200 INFO DefaultPeriodCleaner - <- Delete snapshot:
2013-03-07T18:52:3
5+0530 [438]
10:31:47.255 INFO DefaultPeriodCleaner - <- Delete snapshot:
2013-03-07T18:54:3
5+0530 [455]
10:31:47.282 INFO DefaultPeriodCleaner - <- Delete snapshot:
2013-03-07T19:14:2
4+0530 [534]
10:31:47.315 INFO .p.d.p.KeepOneFilter - -> Keep one snapshot per week
between
2012-03-09 and 2013-02-08
10:31:47.322 INFO .p.d.p.KeepOneFilter - -> Keep one snapshot per month
between
2008-03-14 and 2012-03-09
10:31:47.324 INFO .d.p.DeleteAllFilter - -> Delete data prior to:
2008-03-14
10:31:47.332 INFO o.s.c.purge.PurgeDao - -> Clean Banking Project [id=1]
10:31:47.334 INFO o.s.c.purge.PurgeDao - <- Clean snapshot 551
10:31:47.408 INFO o.s.c.purge.PurgeDao - -> Clean mybank1 [id=2]
10:31:47.420 INFO o.s.c.purge.PurgeDao - -> Clean BankPayRoll [id=3]
10:31:47.425 INFO o.s.c.purge.PurgeDao - -> Clean BankingTestProject
[id=47]
Total time: 1:59.222s
Final Memory: 13M/371M
/////////////////////////////

<Loading Image...>



--
View this message in context: http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655.html
Sent from the Sonar user mailing list archive at Nabble.com.
Fabrice Bellingard
2013-03-11 09:33:15 UTC
Permalink
Hi,

you're probably facing this issue:
https://jira.codehaus.org/browse/SONARDOTNT-301
It will be fixed in the next version of the plugins.
Meantime, you can downgrade your OpenCover install to version 4.0.1118
which works.


Best regards,

*Fabrice BELLINGARD | SonarSource**
*http://sonarsource.com
Post by Irfan Khan
Hi,
I am doing sonar analysis on C# project. I am using using Galilo and
OpenCover. But I am getting 0% for the code coverage.
My sonar-project.properties file content.
#This File is used as input for sonar code analysis and unit testing
#Please do not delete!
#Default source code encoding
sonar.sourceEncoding=UTF-8
# Project identification
sonar.projectKey=CG:BankingProject
sonar.projectVersion=Sonar - Banking_20130308.1
sonar.projectName=Banking Project
# Info required for Sonar
sonar.sources=.
sonar.language=cs
# C# core settings
sonar.dotnet.4.0.sdk.directory=C:/WIndows/Microsoft.NET/Framework/v4.0.30319
sonar.dotnet.version=4.0
# Gallio
#sonar.gallio.mode=
#sonar.gallio.coverage.tool=OpenCover
sonar.gallio.runner=IsolatedProcess
sonar.dotnet.test.assemblies=C:/Builds/3/Demo Projects/Sonar -
Banking/Binaries/*Test*.*
sonar.donet.visualstudio.testProjectPattern=*UnitTests*;*test*;*Test*
sonar.gallio.filter=*
////////////////////////////////////////////////
Output of my sonar-runner
--------------------------
07)
10:30:15.208 INFO org.sonar.INFO - Compare over 5 days (2013-03-03,
analy
sis of 2013-03-04 19:29:17.891)
10:30:15.243 INFO org.sonar.INFO - Compare over 30 days
(2013-02-06,
anal
ysis of 2013-02-25 17:43:23.521)
10:30:15.371 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger...
10:30:15.378 INFO jectFileSystemLogger - C:\Builds\3\Demo Projects\Sonar
- Ba
nking\Sources\Banking Project\mybank1
10:30:15.380 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger do
ne: 10 ms
10:30:15.381 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer..
.
10:30:15.389 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer d
one: 8 ms
10:30:15.477 INFO .VisualStudioProject - Skipping the non generated
assembly of
project : mybank1
10:30:15.478 WARN tRegularCSharpSensor - No assembly to check with Gendarme
10:30:15.495 INFO .VisualStudioProject - Skipping the non generated
assembly of
project : mybank1
10:30:15.497 WARN tRegularCSharpSensor - No assembly to check with FxCop
10:30:15.512 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.core.C
10:30:15.737 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.core.C
10:30:15.738 INFO p.PhasesTimeProfiler - Sensor
com.sonar.plugins.csharp.squid.
10:30:16.260 INFO p.PhasesTimeProfiler - Sensor
com.sonar.plugins.csharp.squid.
10:30:16.261 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
10:30:16.319 INFO .u.c.CommandExecutor - Executing command: C:\Program
Files (x
86)\OpenCover\OpenCover.Console.exe -register:user
-target:C:\Progra~1\Gallio\bi
n\Gallio.Echo.exe -targetdir:C:\Builds\3\Demo Projects\Sonar -
Banking\Sources\B
anking Project\.sonar "-targetargs:\"/r:IsolatedProcess\"
\Builds\3\Demo Projects\Sonar - Banking\Sources\Banking Project\.sonar\"
\"/repo
rt-name-format:gallio-report\" \"/report-type:Xml\" \"/f:*\"
\"C:\Builds\3\Demo
Projects\Sonar - Banking\Binaries\BankingTestProject.pdb\"
\"C:\Builds\3\Demo Pr
ojects\Sonar - Banking\Binaries\BankingTestProject.dll\""
"-filter:+[mybank1]* +
[BankPayRoll]* " -mergebyhash -output:C:\Builds\3\Demo Projects\Sonar -
Banking\
Sources\Banking Project\.sonar\coverage-report.xml
10:30:28.934 INFO .u.c.CommandExecutor -
10:30:28.987 INFO .u.c.CommandExecutor - Gallio Echo - Version 3.4 build 11
10:30:28.990 INFO .u.c.CommandExecutor - Get the latest version at
http://www.g
allio.org/
10:30:28.991 INFO .u.c.CommandExecutor -
10:30:34.021 INFO .u.c.CommandExecutor - Start time: 10:30
10:30:34.037 INFO .u.c.CommandExecutor - Initializing the runtime and
loading p
lugins.
10:30:37.202 INFO .u.c.CommandExecutor - Verifying test files.
10:30:37.902 INFO .u.c.CommandExecutor - Initializing the test runner.
10:30:37.926 INFO .u.c.CommandExecutor - Running the tests.
10:30:38.780 INFO .u.c.CommandExecutor - [warning] File
'BankingTestProject.pdb
' is not supported by any installed test framework. It will be ignored.
10:30:38.783 INFO .u.c.CommandExecutor - Location: C:\Builds\3\Demo
Proje
cts\Sonar - Banking\Binaries\BankingTestProject.pdb
10:30:38.925 INFO .u.c.CommandExecutor - [ignored] Unsupported
BankingTestProje
ct.pdb
10:30:38.926 INFO .u.c.CommandExecutor - This test is not supported by any
avai
lable test framework.
10:30:38.927 INFO .u.c.CommandExecutor -
10:31:13.803 INFO .u.c.CommandExecutor - Generating reports.
10:31:16.043 INFO .u.c.CommandExecutor - Disposing the test runner.
10:31:16.048 INFO .u.c.CommandExecutor - Stop time: 10:31 (Total execution
time
: 42.180 seconds)
10:31:16.051 INFO .u.c.CommandExecutor -
10:31:16.098 INFO .u.c.CommandExecutor - 1 run, 1 passed, 0 failed, 0
inconclus
ive, 1 skipped (1 ignored)
10:31:16.099 INFO .u.c.CommandExecutor -
10:31:16.823 INFO .u.c.CommandExecutor - Committing...
10:31:18.457 INFO .u.c.CommandExecutor - No results - no assemblies that
matche
d the supplied filter were instrumented
10:31:18.459 INFO .u.c.CommandExecutor - this could be due to missing
PDBs
for the assemblies that match the filter
10:31:18.460 INFO .u.c.CommandExecutor - please review the output file
and
refer to the Usage guide (Usage.rtf)
10:31:21.966 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
10:31:21.969 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.stylec
10:31:22.433 INFO leCopProfileExporter - No custom analyzers settings
\Program Files\StyleCop 4.7'. The embedded version (4.7.34.0) will be used
inste
ad.
C:\WIndows\Microsof
t.NET\Framework\v4.0.30319\MSBuild.exe /p:AppRoot=C:\Builds\3\Demo
Projects\Sona
r - Banking\Sources\Banking Project /target:StyleCopLaunch /noconsolelogger
C:\B
uilds\3\Demo Projects\Sonar - Banking\Sources\Banking
Project\mybank1\.sonar\sty
lecop-msbuild.xml
10:31:24.924 INFO .u.c.CommandExecutor - Microsoft (R) Build Engine version
4.0
.30319.17929
10:31:24.925 INFO .u.c.CommandExecutor - [Microsoft .NET Framework, version
4.0
.30319.17929]
10:31:24.925 INFO .u.c.CommandExecutor - Copyright (C) Microsoft
Corporation. A
ll rights reserved.
10:31:24.926 INFO .u.c.CommandExecutor -
10:31:31.363 WARN StyleCopResultParser - Could not find the following rule
in t
StyleCop.CSharp.LayoutRules#ElementMustNotBeOnSingl
eLine
10:31:31.447 WARN o.s.b.i.DefaultIndex - Resource will be ignored in next
Sonar
gner.cs,dir=<null>,filename=Form1.Designer.cs,language=<null>]
10:31:31.517 WARN o.s.b.i.DefaultIndex - Resource will be ignored in next
Sonar
gner.cs,dir=<null>,filename=Form2.Designer.cs,language=<null>]
10:31:31.532 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.stylec
10:31:31.533 INFO p.PhasesTimeProfiler - Sensor CpdSensor...
10:31:31.533 INFO o.s.p.cpd.CpdSensor - SonarBridgeEngine is used
10:31:31.546 INFO s.p.c.i.IndexFactory - Cross-project analysis disabled
10:31:32.039 INFO p.PhasesTimeProfiler - Sensor CpdSensor done: 506 ms
10:31:32.040 INFO p.PhasesTimeProfiler - Sensor ProfileSensor...
10:31:34.439 INFO p.PhasesTimeProfiler - Sensor ProfileSensor done: 2399 ms
10:31:34.440 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor...
220 m
s
10:31:34.661 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor...
188 m
s
10:31:34.852 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
10:31:35.107 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
10:31:35.808 INFO p.PhasesTimeProfiler - Execute decorators...
10:31:37.793 INFO .s.b.b.ProjectModule - ------------- Analyzing
BankPayRoll
[name=Sonar
C# Way,language=cs]
10:31:38.615 INFO nPluginsConfigurator - Configure maven plugins...
10:31:38.731 INFO org.sonar.INFO - Compare to previous analysis
(2013-03-
07)
10:31:38.767 INFO org.sonar.INFO - Compare over 5 days (2013-03-03,
analy
sis of 2013-03-04 19:29:17.898)
10:31:38.798 INFO org.sonar.INFO - Compare over 30 days
(2013-02-06,
anal
ysis of 2013-02-25 17:43:23.617)
10:31:38.831 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger...
10:31:38.843 INFO jectFileSystemLogger - C:\Builds\3\Demo Projects\Sonar
- Ba
nking\Sources\Banking Project\BankPayRoll
10:31:38.844 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger do
ne: 13 ms
10:31:38.844 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer..
.
10:31:38.845 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer d
one: 1 ms
10:31:38.847 INFO s.p.c.g.GallioSensor - Gallio won't execute as test
execution
has already been done.
10:31:38.873 INFO .VisualStudioProject - Skipping the non generated
assembly of
project : BankPayRoll
10:31:38.874 WARN tRegularCSharpSensor - No assembly to check with Gendarme
10:31:38.881 INFO .VisualStudioProject - Skipping the non generated
assembly of
project : BankPayRoll
10:31:38.881 WARN tRegularCSharpSensor - No assembly to check with FxCop
10:31:38.887 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.core.C
10:31:39.106 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.core.C
10:31:39.107 INFO p.PhasesTimeProfiler - Sensor
com.sonar.plugins.csharp.squid.
10:31:39.137 INFO p.PhasesTimeProfiler - Sensor
com.sonar.plugins.csharp.squid.
10:31:39.138 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
10:31:39.145 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
10:31:39.148 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.stylec
10:31:39.178 INFO leCopProfileExporter - No custom analyzers settings
\Program Files\StyleCop 4.7'. The embedded version (4.7.34.0) will be used
inste
ad.
C:\WIndows\Microsof
t.NET\Framework\v4.0.30319\MSBuild.exe /p:AppRoot=C:\Builds\3\Demo
Projects\Sona
r - Banking\Sources\Banking Project /target:StyleCopLaunch /noconsolelogger
C:\B
uilds\3\Demo Projects\Sonar - Banking\Sources\Banking
Project\BankPayRoll\.sonar
\stylecop-msbuild.xml
10:31:39.357 INFO .u.c.CommandExecutor - Microsoft (R) Build Engine version
4.0
.30319.17929
10:31:39.358 INFO .u.c.CommandExecutor - [Microsoft .NET Framework, version
4.0
.30319.17929]
10:31:39.358 INFO .u.c.CommandExecutor - Copyright (C) Microsoft
Corporation. A
ll rights reserved.
10:31:39.359 INFO .u.c.CommandExecutor -
10:31:40.766 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.stylec
10:31:40.767 INFO p.PhasesTimeProfiler - Sensor CpdSensor...
10:31:40.768 INFO o.s.p.cpd.CpdSensor - SonarBridgeEngine is used
10:31:40.773 INFO s.p.c.i.IndexFactory - Cross-project analysis disabled
10:31:40.786 INFO p.PhasesTimeProfiler - Sensor CpdSensor done: 19 ms
10:31:40.787 INFO p.PhasesTimeProfiler - Sensor ProfileSensor...
10:31:41.929 INFO p.PhasesTimeProfiler - Sensor ProfileSensor done: 1142 ms
10:31:41.930 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor...
20 ms
10:31:41.951 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor...
10:31:41.959 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor done: 7
ms
10:31:42.518 INFO p.PhasesTimeProfiler - Execute decorators...
10:31:42.812 INFO .s.b.b.ProjectModule - ------------- Analyzing
BankingTestPr
oject
[name=Sonar
C# Way,language=cs]
10:31:43.761 INFO nPluginsConfigurator - Configure maven plugins...
10:31:43.805 INFO org.sonar.INFO - Compare to previous analysis
(2013-03-
07)
10:31:43.843 INFO org.sonar.INFO - Compare over 5 days (2013-03-03,
analy
sis of 2013-03-07 13:01:41.384)
10:31:43.864 INFO org.sonar.INFO - Compare over 30 days
(2013-02-06,
anal
ysis of 2013-03-07 13:01:41.384)
10:31:43.881 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger...
10:31:43.882 INFO jectFileSystemLogger - C:\Builds\3\Demo Projects\Sonar
- Ba
nking\Sources\Banking Project\BankingTestProject
10:31:43.883 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger do
ne: 2 ms
10:31:43.883 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer..
.
10:31:43.884 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer d
one: 1 ms
10:31:43.885 INFO s.p.c.g.GallioSensor - Gallio won't execute as test
execution
has already been done.
10:31:43.896 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.core.C
10:31:43.961 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.core.C
10:31:43.963 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
10:31:44.000 INFO p.PhasesTimeProfiler - Sensor
org.sonar.plugins.csharp.gallio
10:31:44.000 INFO p.PhasesTimeProfiler - Sensor CpdSensor...
10:31:44.001 INFO o.s.p.cpd.CpdSensor - SonarBridgeEngine is used
10:31:44.001 INFO p.PhasesTimeProfiler - Sensor CpdSensor done: 1 ms
10:31:44.001 INFO p.PhasesTimeProfiler - Sensor ProfileSensor...
10:31:44.419 INFO p.PhasesTimeProfiler - Sensor ProfileSensor done: 418 ms
10:31:44.420 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor...
10:31:44.425 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor done: 5
ms
10:31:44.426 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor...
121 m
s
10:31:44.728 INFO p.PhasesTimeProfiler - Execute decorators...
10:31:44.986 INFO .s.b.b.ProjectModule - ------------- Analyzing Banking
Proje
ct
[name=Sonar
C# Way,language=cs]
10:31:45.592 INFO nPluginsConfigurator - Configure maven plugins...
10:31:45.605 INFO org.sonar.INFO - Compare to previous analysis
(2013-03-
07)
10:31:45.617 INFO org.sonar.INFO - Compare over 5 days (2013-03-03,
analy
sis of 2013-03-04 19:29:17.48)
10:31:45.623 INFO org.sonar.INFO - Compare over 30 days
(2013-02-06,
anal
ysis of 2013-02-25 17:43:20.002)
10:31:45.639 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger...
10:31:45.640 INFO .b.p.SensorsExecutor - Initializer
ProjectFileSystemLogger do
ne: 1 ms
10:31:45.641 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer..
.
10:31:45.641 INFO .b.p.SensorsExecutor - Initializer
CSharpProjectInitializer d
one: 0 ms
10:31:45.642 INFO s.p.c.g.GallioSensor - Gallio won't execute as test
execution
has already been done.
10:31:45.643 INFO p.PhasesTimeProfiler - Sensor CpdSensor...
10:31:45.643 INFO o.s.p.cpd.CpdSensor - SonarBridgeEngine is used
10:31:45.649 INFO p.PhasesTimeProfiler - Sensor CpdSensor done: 6 ms
10:31:45.650 INFO p.PhasesTimeProfiler - Sensor ProfileSensor...
10:31:46.191 INFO p.PhasesTimeProfiler - Sensor ProfileSensor done: 541 ms
10:31:46.192 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor...
10:31:46.200 INFO p.PhasesTimeProfiler - Sensor ProfileEventsSensor done: 8
ms
10:31:46.201 INFO p.PhasesTimeProfiler - Sensor VersionEventsSensor...
11 ms
10:31:46.646 INFO p.PhasesTimeProfiler - Execute decorators...
10:31:47.061 INFO .b.p.UpdateStatusJob - ANALYSIS SUCCESSFUL, you can
browse ht
tp://localhost:9000
10:31:47.079 INFO b.p.PostJobsExecutor - Executing post-job class
org.sonar.plu
gins.core.batch.IndexProjectPostJob
10:31:47.156 INFO b.p.PostJobsExecutor - Executing post-job class
org.sonar.plu
gins.dbcleaner.ProjectPurgePostJob
10:31:47.192 INFO .p.d.p.KeepOneFilter - -> Keep one snapshot per day
between 2
013-02-08 and 2013-03-07
2013-03-07T18:52:3
5+0530 [438]
2013-03-07T18:54:3
5+0530 [455]
2013-03-07T19:14:2
4+0530 [534]
10:31:47.315 INFO .p.d.p.KeepOneFilter - -> Keep one snapshot per week
between
2012-03-09 and 2013-02-08
10:31:47.322 INFO .p.d.p.KeepOneFilter - -> Keep one snapshot per month
between
2008-03-14 and 2012-03-09
2008-03-14
10:31:47.332 INFO o.s.c.purge.PurgeDao - -> Clean Banking Project [id=1]
10:31:47.334 INFO o.s.c.purge.PurgeDao - <- Clean snapshot 551
10:31:47.408 INFO o.s.c.purge.PurgeDao - -> Clean mybank1 [id=2]
10:31:47.420 INFO o.s.c.purge.PurgeDao - -> Clean BankPayRoll [id=3]
10:31:47.425 INFO o.s.c.purge.PurgeDao - -> Clean BankingTestProject
[id=47]
Total time: 1:59.222s
Final Memory: 13M/371M
/////////////////////////////
<http://sonar.15.n6.nabble.com/file/n5009655/Dashboard.jpg>
--
http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655.html
Sent from the Sonar user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Irfan Khan
2013-03-12 11:18:21 UTC
Permalink
Hi Fabrice,

Thanks for your reply. I have installed PartCover and it was giving me the
code coverage for my sample project

But when I used PartCover with my actual implementation project, I am
getting this below error and the code coverage is still 0%

*ERROR CoverParsingStrategy - ***The PartCover report found was empty. Check
out the log of PartCover execution to find out
why.***org.sonar.api.utils.SonarException: Error while trying to get the
next element name*

My server is 64 bit, I have even signed the PartCover and Galilo with
corflags.exe. But still the same error and code coverage is 0%.

One more thing here, I would like to point out that, both my Galilo and
PartCover are installed under Program Files. Will this cause any issue?

There are around 13 test dll, in the binaries folder. If I specify each of
them by their full path and name in sonar-project.properties file, they work
fine and code coverage is shown except for two dlls when they are also added
to the list, I get the above error and the code coverage is showed as 0%.

Find attached my Galilo report file and coverage-report.xml is only of 1 kb.

Please help and advise. This issue has been bugging for me a while now.
gallio-report.xml
<http://sonar.15.n6.nabble.com/file/n5009807/gallio-report.xml>



--
View this message in context: http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655p5009807.html
Sent from the Sonar user mailing list archive at Nabble.com.
Fabrice Bellingard
2013-03-12 15:50:17 UTC
Permalink
Hi Irfan,

Well, I advise you not to use PartCover as this project is dead. OpenCover
is the successor and we put effort on it now.

https://jira.codehaus.org/browse/SONARDOTNT-301 has just been fixed by
Alex, could you try again with OpenCover using the following freshly-built
snapshot of the .NET/C# plugins? =>
http://dist.sonarsource.com/csharp/download/CSharpPluginsEcosystem-2.1-SNAPSHOT.zip


Best regards,

*Fabrice BELLINGARD | SonarSource**
*http://sonarsource.com
Post by Irfan Khan
Hi Fabrice,
Thanks for your reply. I have installed PartCover and it was giving me the
code coverage for my sample project
But when I used PartCover with my actual implementation project, I am
getting this below error and the code coverage is still 0%
*ERROR CoverParsingStrategy - ***The PartCover report found was empty. Check
out the log of PartCover execution to find out
why.***org.sonar.api.utils.SonarException: Error while trying to get the
next element name*
My server is 64 bit, I have even signed the PartCover and Galilo with
corflags.exe. But still the same error and code coverage is 0%.
One more thing here, I would like to point out that, both my Galilo and
PartCover are installed under Program Files. Will this cause any issue?
There are around 13 test dll, in the binaries folder. If I specify each of
them by their full path and name in sonar-project.properties file, they work
fine and code coverage is shown except for two dlls when they are also added
to the list, I get the above error and the code coverage is showed as 0%.
Find attached my Galilo report file and coverage-report.xml is only of 1 kb.
Please help and advise. This issue has been bugging for me a while now.
gallio-report.xml
<http://sonar.15.n6.nabble.com/file/n5009807/gallio-report.xml>
--
http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655p5009807.html
Sent from the Sonar user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Irfan Khan
2013-03-13 08:59:57 UTC
Permalink
Hi Fabrice,

Thanks for your prompt response.

As advised by you, I removed PartCover and reverted back to OpenCover for my
sonar configuration and ran the sonar-runner with the new plugins 2.1.
against my sample project

But the code coverage is now showing as 0%, which was at least giving me
some figure with PartCover.

Find attached the sonar-runner log file and my sonar-project file.

sonar-project.properties
<http://sonar.15.n6.nabble.com/file/n5009861/sonar-project.properties>
sonar-runner.log
<http://sonar.15.n6.nabble.com/file/n5009861/sonar-runner.log>

Please help and advise.

Irfan Khan



--
View this message in context: http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655p5009861.html
Sent from the Sonar user mailing list archive at Nabble.com.
Irfan Khan
2013-03-13 09:50:38 UTC
Permalink
Hi Fabrice,

I thought of sharing this information with you.

OpenCover 4.0.301 is installed on my machine and I have not download grade
to 4.0.1118, as advised by you earlier.

Also find attached codecoverage report for my project.

coverage-report.xml
<http://sonar.15.n6.nabble.com/file/n5009864/coverage-report.xml>

Thanks,

Irfan Khan



--
View this message in context: http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655p5009864.html
Sent from the Sonar user mailing list archive at Nabble.com.
Fabrice Bellingard
2013-03-14 11:12:30 UTC
Permalink
Hi Irfan,

you can see in the log that there are many messages that tend to say that
your configuration is not correct:

- no assembly files are found to be analysed by FxCop or Gendarme for
instance
- Gallio has the same kind of problem:

14:12:55.243 INFO .u.c.CommandExecutor - No results - no assemblies that
matched the supplied filter were instrumented
14:12:55.243 INFO .u.c.CommandExecutor - this could be due to missing PDBs
for the assemblies that match the filter
Can you make sure that you have fully cleaned and rebuilt (in Debug mode!)
your solution before launching the Sonar analysis?




Best regards,

*Fabrice BELLINGARD | SonarSource**
*http://sonarsource.com
Hi Fabrice,
I thought of sharing this information with you.
OpenCover 4.0.301 is installed on my machine and I have not download grade
to 4.0.1118, as advised by you earlier.
Also find attached codecoverage report for my project.
coverage-report.xml
<http://sonar.15.n6.nabble.com/file/n5009864/coverage-report.xml>
Thanks,
Irfan Khan
--
http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655p5009864.html
Sent from the Sonar user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Irfan Khan
2013-03-15 12:35:10 UTC
Permalink
Hi Fabrice,

Thanks for your reply.

As discussed by you in your previous post, I cleaned and rebuild my sample
project. After that I was able to view the code coverage on the Sonar
Dashboard.

I also did the same changes on my actual implementation project. But still I
am not able to view the code coverage for it.

I am getting the same message
-------------------------------------
17:04:08.501 INFO .u.c.CommandExecutor - No results - no assemblies that
matched the supplied filter were instrumented
17:04:08.501 INFO .u.c.CommandExecutor - this could be due to missing
PDBs for the assemblies that match the filter
17:04:08.501 INFO .u.c.CommandExecutor - please review the output file
and refer to the Usage guide (Usage.rtf)
-------------------------------------

Also find attached the log file for sonar-runner.

sonar-runner.log
<http://sonar.15.n6.nabble.com/file/n5010007/sonar-runner.log>

Please advise

Thanks

Irfan Khan



--
View this message in context: http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655p5010007.html
Sent from the Sonar user mailing list archive at Nabble.com.
Fabrice Bellingard
2013-03-18 09:40:36 UTC
Permalink
Hi Irfan,

could you create a small project that reproduces this issue and send it to
me please? I'm pretty sure that you're missing something on the
configuration of your project. This is not normal that the plugin can't
find any assembly...


Best regards,

*Fabrice BELLINGARD | SonarSource**
*http://sonarsource.com
Post by Irfan Khan
Hi Fabrice,
Thanks for your reply.
As discussed by you in your previous post, I cleaned and rebuild my sample
project. After that I was able to view the code coverage on the Sonar
Dashboard.
I also did the same changes on my actual implementation project. But still I
am not able to view the code coverage for it.
I am getting the same message
-------------------------------------
17:04:08.501 INFO .u.c.CommandExecutor - No results - no assemblies that
matched the supplied filter were instrumented
17:04:08.501 INFO .u.c.CommandExecutor - this could be due to missing
PDBs for the assemblies that match the filter
17:04:08.501 INFO .u.c.CommandExecutor - please review the output file
and refer to the Usage guide (Usage.rtf)
-------------------------------------
Also find attached the log file for sonar-runner.
sonar-runner.log
<http://sonar.15.n6.nabble.com/file/n5010007/sonar-runner.log>
Please advise
Thanks
Irfan Khan
--
http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655p5010007.html
Sent from the Sonar user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Fabrice Bellingard
2013-03-20 13:56:42 UTC
Permalink
Irfan, just to be sure: which version of the .NET Framework do you have on
your machine?


Best regards,

*Fabrice BELLINGARD | SonarSource**
*http://sonarsource.com
Post by Irfan Khan
Hi Fabrice,
Thanks for your reply.
As discussed by you in your previous post, I cleaned and rebuild my sample
project. After that I was able to view the code coverage on the Sonar
Dashboard.
I also did the same changes on my actual implementation project. But still I
am not able to view the code coverage for it.
I am getting the same message
-------------------------------------
17:04:08.501 INFO .u.c.CommandExecutor - No results - no assemblies that
matched the supplied filter were instrumented
17:04:08.501 INFO .u.c.CommandExecutor - this could be due to missing
PDBs for the assemblies that match the filter
17:04:08.501 INFO .u.c.CommandExecutor - please review the output file
and refer to the Usage guide (Usage.rtf)
-------------------------------------
Also find attached the log file for sonar-runner.
sonar-runner.log
<http://sonar.15.n6.nabble.com/file/n5010007/sonar-runner.log>
Please advise
Thanks
Irfan Khan
--
http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655p5010007.html
Sent from the Sonar user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Irfan Khan
2013-03-21 06:33:49 UTC
Permalink
Hi Fabrice,

The Team is using .Net version 4.0

One more thing I would like to add here is that the, .net solution file also
have biztalk 5 projects in it.

Also find attached project-sonar file and sonar-runner log file.

sonar-project.properties
<http://sonar.15.n6.nabble.com/file/n5010206/sonar-project.properties>
sonar-runner.log
<http://sonar.15.n6.nabble.com/file/n5010206/sonar-runner.log>

Thanks,

Irfan Khan



--
View this message in context: http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655p5010206.html
Sent from the Sonar user mailing list archive at Nabble.com.
Fabrice Bellingard
2013-03-21 07:33:02 UTC
Permalink
Well, Irfan, unless you can reproduce your issue on a small project that
you can send me, I'm afraid I won't be able to help you further on this.


Best regards,

*Fabrice BELLINGARD | SonarSource**
*http://sonarsource.com
Post by Irfan Khan
Hi Fabrice,
The Team is using .Net version 4.0
One more thing I would like to add here is that the, .net solution file also
have biztalk 5 projects in it.
Also find attached project-sonar file and sonar-runner log file.
sonar-project.properties
<http://sonar.15.n6.nabble.com/file/n5010206/sonar-project.properties>
sonar-runner.log
<http://sonar.15.n6.nabble.com/file/n5010206/sonar-runner.log>
Thanks,
Irfan Khan
--
http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655p5010206.html
Sent from the Sonar user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Irfan Khan
2013-03-21 08:17:44 UTC
Permalink
Hi Fabrice,

Thanks for your reply.

As I told you before too. That it works absolutely fine on my sample .net
project.

My actually project have some biztalk implementation too. And as I belong to
another team I dont have access to the Biztalk contents and software stuffs.

Hence I cant add the same to my sample project to reproduce the problem.
Plus I dont have any knowledge on Biztalk implementation.

Please can you suggest some other ways in which we can resolve this issue.
It would be highly appreciated.

Please help and advise.

Thanks

Irfan Khan



--
View this message in context: http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655p5010216.html
Sent from the Sonar user mailing list archive at Nabble.com.
Fabrice Bellingard
2013-03-21 16:01:19 UTC
Permalink
I'm sorry Irfan, if I don't have a sample project, I can't help you more on
this.


Best regards,

*Fabrice BELLINGARD | SonarSource**
*http://sonarsource.com
Post by Irfan Khan
Hi Fabrice,
Thanks for your reply.
As I told you before too. That it works absolutely fine on my sample .net
project.
My actually project have some biztalk implementation too. And as I belong to
another team I dont have access to the Biztalk contents and software stuffs.
Hence I cant add the same to my sample project to reproduce the problem.
Plus I dont have any knowledge on Biztalk implementation.
Please can you suggest some other ways in which we can resolve this issue.
It would be highly appreciated.
Please help and advise.
Thanks
Irfan Khan
--
http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655p5010216.html
Sent from the Sonar user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Alexandre Victoor
2013-03-21 18:28:37 UTC
Permalink
Hello Irfan
From the logs you have posted before there seems to be a compatibility
issue between the test frameworks used by the visual studio solution and
the version of gallio installed.
Hope it helps

Alex
Le 21 mars 2013 17:03, "Fabrice Bellingard" <
Post by Fabrice Bellingard
I'm sorry Irfan, if I don't have a sample project, I can't help you more
on this.
Best regards,
*Fabrice BELLINGARD | SonarSource**
*http://sonarsource.com
Post by Irfan Khan
Hi Fabrice,
Thanks for your reply.
As I told you before too. That it works absolutely fine on my sample .net
project.
My actually project have some biztalk implementation too. And as I belong to
another team I dont have access to the Biztalk contents and software stuffs.
Hence I cant add the same to my sample project to reproduce the problem.
Plus I dont have any knowledge on Biztalk implementation.
Please can you suggest some other ways in which we can resolve this issue.
It would be highly appreciated.
Please help and advise.
Thanks
Irfan Khan
--
http://sonar.15.n6.nabble.com/Sonar-display-0-code-coverage-for-C-project-tp5009655p5010216.html
Sent from the Sonar user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Continue reading on narkive:
Search results for 'Sonar display 0% code coverage for C# project' (Questions and Answers)
8
replies
Titanic information please?
started 2006-12-13 05:37:39 UTC
history
Loading...