** Changed in: nunitv2
   Importance: Low => Undecided

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

Title:
  Feature request: Provide interface to query selected categories

Status in NUnit V2 Test Framework:
  Triaged

Bug description:
  Please implement a feature that will provide a list of which
  categories have been chosen for the test run (using the include list).

  Here's a code sample of how this could be used in future:

  TestContext.SelectedCategories would offer a collection indicating
  which categories were selected.

  [Test]
  [Category("long")]
  [Category("short")]
  Public void SomeTest()
  {
        List.Add(item1);
        List.Add(item2);
        If(TestContext.SelectedCategories.Contains("long"))
        {
                List.Add(item3);
                List.Add(item4);
  ...
                List.Add(itemN);
        }
        ProcessList(List);
  } 

  Depending on the content of the list, this test might either take an
  hour (full scope) or 2 minutes (reduced scope).

  This feature request has been filed as a result of a discussion in NUnit 
discuss group:
  
http://groups.google.com/group/nunit-discuss/browse_thread/thread/79a899b9c37866df

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

_______________________________________________
Mailing list: https://launchpad.net/~nunit-core
Post to     : nunit-core@lists.launchpad.net
Unsubscribe : https://launchpad.net/~nunit-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to