Sonali,

The obvious change is that the attribute to use is testname, not testcase.

<test testname="MyModuleTest.MyTestClass.MyTest"
assemblyname="${test.assembly}"
appconfig="${test.appconfig}"/>

I haven't tried it, so I don't know if that's the only problem.

Noel


 -----Original Message-----
From:   [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]  On Behalf Of
[EMAIL PROTECTED]
Sent:   Wednesday, May 12, 2004 1:21 PM
To:     [EMAIL PROTECTED]
Subject:        [Nant-users] testcase attribute on Nunit2 task not working

Hi

I have NUnit 2.1.4 and NAnt 0.84. I need to call each test ( marked as
[Test] in my testfixture ) using nUnit2 task
I need this so I can change the sequence in which each test is run.
I have added the testcase attribute to point to the method marked [Test].

When this task runs, this attribute is ignored and all tests in all fixtures
are run.

How should testcase attribute be used to get this to work properly?

Here is my xml build file
<test testcase="MyModuleTest.MyTestClass.MyTest"
assemblyname="${test.assembly}"
appconfig="${test.appconfig}"/>

The corresponding test code -
namespace MyModuleTest
{
[TestFixture] public class MyTestClass
{
[Test] public void MyTest()
{
...
}
}
}

Any info on this is appreciated!

thanks
Sonali


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to