I'm trying to use TypeMock together with NCover
When I run simple NAnt script that starts typemock and runs ncover (from typemock documentation), the tests (including those dependent on TypeMock) are executed successfully , but then I get
[ncover] ***************** Exception *****************
[ncover]
[ncover] -- Top-level exception (System.Exception)
[ncover] No data was collected.
[ncover] -- Stack Trace
[ncover] at NCover.Framework.ProfilerDriver._GetCoverageData()
[ncover] at NCover.Framework.ProfilerDriver.Execute()
[ncover] at NCover.ConsoleMain.ConsoleMain.Main(String[] args)
[ncover]
BUILD FAILED
c:TeamCityTools
ant-0.86-beta1in est1.build(43,6):
External Program Failed: C:Program FilesNCover\NCover.Console.exe (return code was 20000)
What am I doing wrong?
NAnt script:
<?xml version="1.0"?>
<project name="prj" default="test">
<property name="nunit" value="c:Program FilesNUnit 2.4.7in
unit-console.exe" />
<property name="ncover.dir" value="C:Program FilesNCover" />
<property name="typemock.dir" value="c:Program FilesTypemockIsolator.2" />
<target name="test">
<loadtasks assembly="${typemock.dir}TypeMock.NAntBuild.dll" />
<loadtasks assembly="${ncover.dir}Build Task PluginsNCoverExplorer.NAntTasks.dll" />
<typemockstart target="2.0" link="NCover2.0" profilerlaunchedfirst="true" />
<ncover program="${ncover.dir}NCover.Console.exe"
commandLineExe="${nunit}"
commandLineArgs="My.tests.dll"
registerProfiler="false"/>
<typemockstop />
</target>
</project >