Mike,
Since you mention the [TestFixture] attributes I'm assuming that you 
have nUnit 2.0. Currently the NAnt nunit task is still working against 
nunit 1 which did not use the attributed syntax. We are in the process 
of updating to NUnit 2.0. Once that is done your tests should run fine.

Ian

> I am trying to get NAnt and NUnit working in together and experiencing 
> a problem.
>
>  
>
> After sifting through the NAnt unit test source, it appears that 
> people are using the concept of an AllTests class that examines a 
> given assembly for types that inherit from TestCase. Is that the only 
> way to get Unit tests to function under NAnt or will the test cases 
> that I have using attributed based declaration  [TestFixture] and 
> [Test] be able to work somehow?
>
>  
>
> I ask this because I have a series of tests that work perfectly when 
> executed from the NUnit GUI or console, but when I try to run the 
> NUnit task, I get:
>
>  
>
> BUILD FAILED
>
> C:\Impact\impact.build(-1,-1): Error running unit test.
>
> Object reference not set to an instance of an object.
>
> Try `NAnt -help' for more information.
>
>  
>
> Any light on this error or if I am thinking about the problem from the 
> correct angle would help.
>
>  
>
> Mike
>
> * *
>
>  
>





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to