Ncover Task for NAnt
Ncover Task for NAnt
I wrote a new NAnt script for a new project, and thought of using NCover task (from NCoverExplorer.Extras).
this is how I wrote it:
<ncover program="${path.ncover.console}"
commandLineExe="${path.nunit.console}"
commandLineArgs="${path::get-file-name(filename)} /xml="${test.output.dir}\${basename}-nunit.result.xml""
coverageFile="${ncover.output.dir}\${basename}.ncover.result.xml"
workingDirectory="${test.temp.dir}" >
</ncover>
The *ncover.result.xml files were created with no data inside it.
when I changed it to run thru exec:
<execIt works.
program="${path.ncover.console}"
workingdir="${test.temp.dir}"
commandline="${path.nunit.console} ${path::get-file-name(filename)} /xml="${test.output.dir}\${basename}-nunit.result.xml" /nologo //x ${ncover.output.dir}\${basename}.ncover.result.xml"/>
The input parameters to NCover, whether its in exec or with the task, is the same.
Any suggestions?