Update of /cvsroot/netreflector/NetReflector
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19456
Modified Files:
reflector.build
Added Files:
b.bat
Log Message:
adding support for ncover
--- NEW FILE: b.bat ---
@echo off
cls
tools\nant\NAnt.exe -nologo %*
Index: reflector.build
===================================================================
RCS file: /cvsroot/netreflector/NetReflector/reflector.build,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** reflector.build 9 Sep 2005 02:25:18 -0000 1.16
--- reflector.build 11 Sep 2005 15:43:43 -0000 1.17
***************
*** 21,24 ****
--- 21,26 ----
<property name="vil.assemblies" value="${core.dll},${test.dll}" />
<property name="nunit.output" value="Plain"/>
+ <property name="nunit-console.exe" value="tools\nunit\nunit-console.exe" />
+ <property name="ncover-console.exe" value="tools\ncover\NCover.Console.exe" />
<property name="CCNetLabel" value="1.0.0.0" overwrite="false" />
***************
*** 28,33 ****
<!-- CLEAN -->
<target name="clean" description="cleans up everything">
! <delete dir="${build.dir}" failonerror="false" verbose="${verbosity}"/>
! <delete dir="${publish.dir}" failonerror="false" verbose="${verbosity}"/>
</target>
--- 30,35 ----
<!-- CLEAN -->
<target name="clean" description="cleans up everything">
! <delete dir="${build.dir}" if="${directory::exists(build.dir)}" verbose="${verbosity}"/>
! <delete dir="${publish.dir}" if="${directory::exists(publish.dir)}" verbose="${verbosity}"/>
</target>
***************
*** 95,99 ****
<!-- TEST -->
! <target name="test.unit" description="runs unit tests">
<nunit2>
<formatter type="${nunit.output}" />
--- 97,101 ----
<!-- TEST -->
! <target name="test.unit2" description="runs unit tests">
<nunit2>
<formatter type="${nunit.output}" />
***************
*** 102,105 ****
--- 104,112 ----
</target>
+ <target name="test.unit" description="runs unit tests">
+ <exec program="regsvr32" workingdir="tools\ncover" commandline="/s CoverLib.dll" />
+ <exec program="${ncover-console.exe}" workingdir="${build.dir}" commandline="/w . /c "..\${nunit-console.exe}" "${test.dll} /xml:${test.dll}-results.xml /nologo""/>
+ </target>
+
<!-- DISTRIBUTION BUILD -->
<target name="dist" depends="dist.properties,all,package" description="build distribution version"/>
|