vrakeshreddy / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

NCover not running when using Team City #633

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I am using a MSBuild script with the following task for Gallio.
<Gallio IgnoreFailures="true" ReportTypes="XHtml"
ReportDirectory="$(ReportDir)" 
                Files="@(TestFile)" RunnerType="NCover"
ReportNameFormat="TestResults" 

RunnerProperties="NCoverCoverageFile=&quot;$(ReportDir)\\Coverage.xml&quot;;NCov
erArguments=&quot;//l
Coverage.log //reg&quot;">

2. The MSBuild is run with the MSBuild test runner in Team City

What is the expected output? 
Test report, Coverage.xml and coverage.log

What do you see instead?
The tests are run and a report for these are produced.  However when it
comes to NCover I get the following in the diagnostic log in the test
report and an empty coverage.xml and no coverage.log
#
[info] Starting NCover v1.5.8: "C:\Program
Files\Gallio\Bin\NCover\libs\NCover\NCover.Console.exe" "C:\Program
Files\Gallio\Bin\Gallio.Host.x86.exe"
/ipc-port:IsolatedProcessHost.868840fa03da8979 /timeout:120
/owner-process:4236
/application-base-directory:"C:\TeamCity\buildAgent\work\c3c40a0f58cf1154\CalcCo
re.Tests\bin\Debug"
/configuration-file:"C:\TeamCity\buildAgent\work\c3c40a0f58cf1154\CalcCore.Tests
\bin\Debug\b3f78320342e0cb7.tmp.config"
/severity-prefix //w
"C:\TeamCity\buildAgent\work\c3c40a0f58cf1154\CalcCore.Tests\bin\Debug" //x
"C:\TeamCity\buildAgent\temp\buildTmp\Gallio\NCover\0ccwmlsx.v4m" //l
Coverage.log //reg
#
[info] NCover.Console v1.5.8 - Code Coverage Analysis for .NET -
http://ncover.org
Copyright (c) 2004-2006 Peter Waldschmidt

Command: C:\Program Files\Gallio\Bin\Gallio.Host.x86.exe
Command Args: "/ipc-port:IsolatedProcessHost.868840fa03da8979"
"/timeout:120" "/owner-process:4236"
"/application-base-directory:C:\TeamCity\buildAgent\work\c3c40a0f58cf1154\CalcCo
re.Tests\bin\Debug"
"/configuration-file:C:\TeamCity\buildAgent\work\c3c40a0f58cf1154\CalcCore.Tests
\bin\Debug\b3f78320342e0cb7.tmp.config"
"/severity-prefix"
Working Directory:
C:\TeamCity\buildAgent\work\c3c40a0f58cf1154\CalcCore.Tests\bin\Debug
Assemblies:
Coverage Xml: C:\TeamCity\buildAgent\temp\buildTmp\Gallio\NCover\0ccwmlsx.v4m
Coverage Log:
C:\TeamCity\buildAgent\work\c3c40a0f58cf1154\CalcCore.Tests\bin\Debug\Coverage.l
og
#
[info] Waiting for profiled application to connect...[Info] Host started at
3/5/2010 18:48:26.
#
[info] Running under CLR v2.0.50727 runtime.
#
[info] Host stopped at 3/5/2010 18:48:29.
#
[info] Waiting for the host process to terminate.
#
[info] Connected
Profiled process terminated. Profiler connection not established.
#
[error] Host process exited with code: 1

What version of the product are you using? On what operating system?
3.1.397 and Team City 5.0.2 (build 10784) on Windows XP

Please provide any additional information below.
If I run the MSBuild proj outside of Team city on the build server I get
the expected results.

Original issue reported on code.google.com by cabraham...@gmail.com on 6 Mar 2010 at 1:32

GoogleCodeExporter commented 9 years ago
Unfortunately it looks like you might have stumbled upon a bug in NCover 
v1.5.8.  I
recommend trying NCover v3.2.

Original comment by jeff.br...@gmail.com on 9 Mar 2010 at 5:36

GoogleCodeExporter commented 9 years ago
Update - The build agent service account needs to be an admin account and not 
the
local service account.  When I made this change it worked in Team City.

Original comment by cabraham...@gmail.com on 10 Mar 2010 at 10:14

GoogleCodeExporter commented 9 years ago
OK, thanks. We'll make a note on the wiki.

Original comment by grahamr...@gmail.com on 11 Mar 2010 at 7:58