← Back to team overview

nunit-core team mailing list archive

[Bug 881617] Re: Tests with invalid category attributes should be more visible

 

Fixed this by implementing the three points above. Also made ignored
tests show up as yellow in the gui before they are run.

** Changed in: nunitv2
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/881617

Title:
  Tests with invalid category attributes should be more visible

Status in NUnit V2 Test Framework:
  Fix Committed

Bug description:
  When a test is marked with an invalid category attribute, like aaa-
  bbb, that test is marked as not-runnable and shows up as an error in
  both the gui and console if we try to run it. However, if we make the
  mistake of asking nunit to run category aaa-bbb, then the test in
  question is not run (because aaa-bbb is a valid category expression)
  and no error appears. From the point of view of the user, the test
  seems to have just disappeared.

  The following changes are needed, at a minimum, to make it clearer to
  the user just what is happening:

  1. Not runnable tests should show as red in the gui as soon as the
  tests are loaded, without waiting for a test run. They should remain
  red even after a test run that does not include them.

  2. Invalid categories should not be listed for selection by the gui at
  all.

  3. The console runner output should use wording that indicates aaa-bbb
  is a category expression rather than a simple category.

  See bug #881357 for more info on the motivation for this change.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/881617/+subscriptions


References