Has anyone tried using the nunit2 task with nunit 2.1 assemblies?
Am I missing the obvious that this shouldn't work - is there a 
new version of the nunit2 task being worked on for 2.1?
I haven't used the nunit2 task before so I don't know if that is
the cause of my problem or not.  I traced through the source
for the nunit2 task to see that it calls the nunit test runner 
directly using the nunit2 assemblies.  I tried simply replacing
the nunit dlls in the nant/bin but there is no nunitcore.dll in
Nunit 2.1?

Any help or clues appreciated.

Thanks,
Jonathan Cogley

Here is my nant build xml:

        <nunit2 verbose="true" failonerror="false">
                <formatter type="Plain" />
                <test
assemblyname="${build.dir}\src\UnitTests.GiantEagle.Core\bin\Release\Uni
tTests.GiantEagle.Core.dll"/>
        </nunit2>

Here is the exception information:

   [nunit2] NUnit 2.0 Error: :
NAnt.Core.BuildException: NUnit 2.0 Error:  --->
NUnit.Core.NoTestFixturesExcept
ion:
D:\builds\GiantEagle.Core\src\UnitTests.GiantEagle.Core\bin\Release\Unit
Tes
ts.GiantEagle.Core.dll has no TestFixtures

Server stack trace:
   at NUnit.Core.TestSuiteBuilder.Build(String assemblyName)
   at NUnit.Core.RemoteTestRunner.BuildSuite()
   at
System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage
(M
ethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean
fExecuteInC
ontext, Object[]& outArgs)
   at
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IM
es
sage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:
   at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
req
Msg, IMessage retMsg)
   at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgDa
ta, Int32 type)
   at NUnit.Core.RemoteTestRunner.BuildSuite()
   at NAnt.NUnit2.Tasks.NUnit2TestDomain.RunTest(String testcase, String
assembl
yFile, String configFilePath, EventListener listener)
   at NAnt.NUnit2.Tasks.NUnit2Task.RunSingleRemoteTest(NUnit2Test test,
String t
estAssembly, EventListener listener)
   --- End of inner exception stack trace ---
   at NAnt.NUnit2.Tasks.NUnit2Task.RunSingleRemoteTest(NUnit2Test test,
String t
estAssembly, EventListener listener)
   at NAnt.NUnit2.Tasks.NUnit2Task.RunRemoteTest(NUnit2Test test,
EventListener
listener)
   at NAnt.NUnit2.Tasks.NUnit2Task.ExecuteTask()
   at NAnt.Core.Task.Execute()

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to