Bugs item #929632, was opened at 2004-04-05 10:52
Message generated for change (Settings changed) made by drieseng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=929632&group_id=31650

>Category: Tasks
>Group: cvs
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: NucleoN (nucleon)
>Assigned to: Gert Driesen (drieseng)
Summary: testname in nunit2 task does not function

Initial Comment:
Build script:

<nunit2 verbose="true">
<formatter type="Xml" usefile="true" extension=".xml" 
outputdir="${components.build.dir}/results" />

<test assemblyname="${components.build.dir}\xyz.dll"  
appconfig="${components.build.dir}
\xyz.UnitTest.dll.config" 
testname="TestErrorCode20388" />
</nunit2>

Results in:

NAnt 0.85 (Build 0.85.1554.0; net-1.0.win32; nightly; 3-
4-2004)
Copyright (C) 2001-2004 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///D:/dotnet/xyz/Product/R02_00/xyz.build
Target(s) specified: test
     [echo] Using 'net-1.1' framework on 'win32' platform.

test:

     [echo] Testing in: p:\bin\components

BUILD FAILED

D:\dotnet\xyz\Product\R02_00\xyz.build(163,6):
NUnit error.
    Object reference not set to an instance of an object.

Total time: 0.6 seconds.

When the testname attribute is not used, all tested are 
execeuted correctly


----------------------------------------------------------------------

>Comment By: Gert Driesen (drieseng)
Date: 2004-08-11 20:00

Message:
Logged In: YES 
user_id=707851

The documentation has been updated to reflect that 
testname is actually the name of a testfixture.

Also, an exception is no longer thrown.

----------------------------------------------------------------------

Comment By: NucleoN (nucleon)
Date: 2004-04-06 08:30

Message:
Logged In: YES 
user_id=632162

OK. I will try that. 
Btw I expected that testname would match a method marked 
with [Test], not a fixture. So in case of type A.B.C with 
method Q as a test, it should be A.B.C.Q? 

Still I expect another exception in this case, maybe 
something like "Test not found. Please specify the full name 
of the Fixture, followed by the method name"

----------------------------------------------------------------------

Comment By: Gert Driesen (drieseng)
Date: 2004-04-05 12:03

Message:
Logged In: YES 
user_id=707851

If I'm not mistaken, you can only specify the full class name 
of a TestFixture that you want to execute in the testname 
attribute.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=929632&group_id=31650


-------------------------------------------------------
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-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to