made it easy to be able to run a single NUnit test case e.g.

nant test-case -D:test=NMS.TemporaryQueueTest

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@428233 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-08-03 04:41:03 +00:00
parent 0462d1d3d0
commit df09548bde
1 changed files with 8 additions and 1 deletions

View File

@ -282,12 +282,19 @@
<target name="build" depends="build-test"></target>
<target name="test" depends="build-test">
<target name="test" depends="build-test" description="Runs all the NUnit test cases">
<nunit2>
<formatter type="Plain" />
<test assemblyname="${build.dir}/bin/${project.name}.test.dll"></test>
</nunit2>
</target>
<target name="test-case" depends="build-test" description="Run a specific NUnit test case using the 'test' variable">
<nunit2>
<formatter type="Plain" />
<test assemblyname="${build.dir}/bin/${project.name}.test.dll" testname="${test}"></test>
</nunit2>
</target>
</project>