Fwd: NUnit 2.5 Possible Issue

"Kelly Anderson" <[email protected]> Wed, 27 Aug 2008 12:46:19 -0600
Newsgroups gmane.comp.windows.dotnet.nunit.devel
Message-ID <[email protected]>
I agree that 1 is correct. 2, not so much. I think Inconclusive would
be a good option, but would not object to Ignored either. No tests to
run is not the same as a failed test, IMHO.

What color does Inconclusive show on the NUnit GUI?

-Kelly

On Wed, Aug 27, 2008 at 12:37 PM, Charlie Poole
<[email protected]> wrote:
> I'm aware of this one but hadn't decided yet the way to go.
>
> The basic story is that NUnit now
>  1) Treats non-runnable tests similar to errors
>  2) Considers empty fixtures as non-runnable
>
> I think that the first point is the correct choice - for example,
> if you write a test method with arguments but don't provide any
> NUnit can't figure out how to run it, so it's an error.
>
> OTOH, treating an empty fixture as non-runnable may not be the
> best thing. It could go back to being marked as ignored or
> alternatively use the new Inconclusive result.
>
> Charlie
>
>> -----Original Message-----
>> From: [email protected]
>> [mailto:[email protected]] On
>> Behalf Of Kelly Anderson
>> Sent: Wednesday, August 27, 2008 9:51 AM
>> To: [email protected]
>> Subject: [nunit-developer] NUnit 2.5 Possible Issue
>>
>> In NUnit 2.5, if you create an empty TestFixture (that is,
>> there are no tests in it) it makes the result red. This is
>> even the case if you mark the fixture with an [Ignore]
>> attribute. Is this expected behavior?
>>
>>   // This makes a red result.
>>   [TestFixture]
>>   [Ignore("tests need rewriting.")]
>>   public class MyTests
>>   {
>>     /* stuff commented out */
>>   }
>>
>> -Kelly

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/