I am a new Nant user and have so far been unable to execute existing nunit tests using the nunit2 task.

I’m using the 0.85 rc version of Nant and have re-compiled my nunit assembly using Nunit 2.2.

 

I get the following from Nant:

 

[nunit2] Assembly <assembly name> was not built using the Nunit framework and/or contains no tests.

 

Here’s my tests target:

 

<target name="runtests">   

          <nunit2 haltonfailure="false" failonerror="false" verbose="true">

                <formatter type="Xml" usefile="true" extension=".out" outputdir="${build.dir}/results" />

                <test assemblyname="${build.dir}/CoshakCompTest.dll"

                        appconfig="${build.dir}/CoshakCompTest.dll.config"

                        testname="TestHelloWorld" />

            </nunit2>

    </target>

 

Any ideas?

 

 

Reply via email to