Hi,
Apologies for my first post being a problem but I have an application that uses
a test runner (written in VB, but utilizing a junit framework) and I'm tring
to get the test runner to work.
Normally I'd just run the tests like this vai the command line
tests.testrunner.exe /t:TextMode (which doesn't start the GUI)
and in Nant this is
<target name="runXATTests" depends="generateDocumentation">
<exec
program="${xat.name}"
workingdir="${Build.Dir.Latest}"
basedir="${Build.Dir.Latest}"
commandline="/t:TextMode"
output="${Build.Dir.Latest}\XATTestOutput.xml"
verbose="true"
/>
</target>
However I now need to get this to work with ncover. I think the fact that the
framework is java based and is using junit might not be helping but the target
is
<target name="code-coverage_report">
<exec program="c:\program files\ncover\ncover.console.exe"
workingdir="${Build.Dir.Latest}"
basedir="${Build.Dir.Latest}" verbose="true" >
<arg line="/q" />
<arg line="/o ${Build.Dir.Latest}\coverage.xml" />
<arg line="/c "${xat.name} /t:TextMode ""/>
</exec>
</target>
I'm getting the following error and can't see why
[exec] NCover.Console v1.3.3 - Code Coverage Analysis for .NET -
http://ncover.org
[exec]
[exec]
[exec] Command: sdm.cho.tests.testrunner.exe /t:TextMode
[exec] Command Args:
[exec] Working Directory:
[exec] Assemblies:
[exec] Coverage File:
C:\build\sdmCHOTests\build\latest\sdmCHOTests\build\latest\coverage.xml
[exec] Coverage Log:
[exec]
[exec] ******************* Program Output *******************
[exec]
[exec] Unhandled Exception: System.ComponentModel.Win32Exception: The
system
cannot find the fi
le specified
[exec] at
System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo
startInfo)
[exec] at System.Diagnostics.Process.Start()
[exec] at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
[exec] at NCover.Framework.ProfilerDriver.Start()
[exec] at NCover.ConsoleMain.ConsoleMain.Main(String[] args)
Any suggestions?
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users