Kevin,

The "testname" attribute is the fully qualified type name of the TestFixture
that you want to execute, not the name of an individual test...

In previous versions of NUnit (and therefore also in versions of NAnt prior
to recent nightly builds), you'd get a NullReferenceException when there's
no test fixture with the name that you specified.

This should now be fixed in cvs and in recent nightly builds
(http://nant.sourceforge.net/nightly/builds).

Hope this helps,

Gert

----- Original Message ----- 
From: "Burton, Kevin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 23, 2004 3:44 PM
Subject: [Nant-users] nunit works standalone but under nant fails.


I have some tests that test a web service. When I run the tests using the
NUnit GUI the tests work fine but under Nant I get:

               [nunit2] NUnit error :System.NullReferenceException: Object
reference not set to an instance of an object.
               [nunit2]
               [nunit2] Server stack trace:
               [nunit2]    at NUnit.Core.RemoteTestRunner.FindByName(Test
test, String fullName)
               [nunit2]    at NUnit.Core.RemoteTestRunner.Run(EventListener
listener, TextWriter outText, TextWriter errorText)
               [nunit2]    at
System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(Met
hodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean
fExecuteInContext, Object[]& outArgs)
               [nunit2]    at
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessa
ge msg, Int32 methodPtr, Boolean fExecuteInContext)
               [nunit2]
               [nunit2] Exception rethrown at [0]:
               [nunit2]    at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
               [nunit2]    at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
               [nunit2]    at NUnit.Core.RemoteTestRunner.Run(EventListener
listener, TextWriter outText, TextWriter errorText)
               [nunit2]    at
NAnt.NUnit2.Tasks.NUnit2TestDomain.RunTest(String testcase, FileInfo
assemblyFile, FileInfo configFile, EventListener listener) in C:\Documents
and Settings\drieseng\Local
Settings\Temp\tmp29C4.tmp\src\NAnt.NUnit\NUnit2\NUnit2TestDomain.cs:line 112
               [nunit2]    at
NAnt.NUnit2.Tasks.NUnit2Task.RunSingleRemoteTest(NUnit2Test test, FileInfo
testAssembly, EventListener listener) in C:\Documents and
Settings\drieseng\Local
Settings\Temp\tmp29C4.tmp\src\NAnt.NUnit\NUnit2\NUnit2Task.cs:line 302

Any ideas what is wrong?

Kevin Burton
[EMAIL PROTECTED]



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to