Problem with "Exclude these categories"

Bug #1027269 reported by J Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit V2
Fix Released
Medium
Charlie Poole

Bug Description

Version 2.6.0.12051, Gui Runner.

If "Exclude these categories" is selected and there are no "Available Categories", then all test are excluded. I expect no tests to be excluded. Moreover, the "Exclude these categories" option is disabled.

Related branches

Revision history for this message
Charlie Poole (charlie.poole) wrote :

I'm unable to get to a state where there are no available categories but 'Exclude these categories' is checked. How did you do it?

Revision history for this message
Charlie Poole (charlie.poole) wrote :

I figured out how it happens:

1. Open a test assembly with one category on a test - if there are other categories, it's more complicated.
2. Select the category in the gui and check exclude these categories.
3. Without closing the gui, modify the source to remove the category and rebuild
4. Reload the assembly - or let it reload automatically

All tests are now excluded.

This only seems to happen on reload, which involves code that is not used in other situations. An explicit test is needed for whether any more categories remain and the checkbox should be cleared otherwise.

Changed in nunitv2:
importance: Undecided → Medium
assignee: nobody → Charlie Poole (charlie.poole)
milestone: none → 2.6.1rc2
status: New → Fix Committed
Revision history for this message
J Young (jyoung) wrote : RE: [Bug 1027269] Re: Problem with "Exclude these categories"

I am sorry for not giving enough information to make your task easier. I looks like you have figured it out.
FYI: In my case, I was excluding tests marked as "KnownFailures". So when I fixed the last "KnownFailures", no tests could run.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Charlie Poole
Sent: Friday, July 20, 2012 8:25 PM
To: <email address hidden>
Subject: [Bug 1027269] Re: Problem with "Exclude these categories"

I'm unable to get to a state where there are no available categories but 'Exclude these categories' is checked. How did you do it?

Revision history for this message
Charlie Poole (charlie.poole) wrote :

Yes, I had been unable to make it happen using the UI only, but then hit on the notion of changing the assembly to see what happened. Your usage with "KnownFailures" should no longer cause a problem after the next release.

Changed in nunitv2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.