On second thought, maybe I don't understand what you want. I can
see two possible interpretations of

>> [TestCaseSource("dataList", Category="A")]

1. Run the tests in "datalist", selecting only those that have category A.
2. Run the tests in "datalist", only if category A was accepted.

Note that if you have only one TestCaseSource, you get the same
as #2 by specifying...

>> [TestCaseSource("dataList")]
>> [Category("A")]

Charlie

On Fri, May 6, 2011 at 10:39 AM, Charlie Poole <[email protected]> wrote:
> Yes, please do since this one is already released.
>
> It sounds like a good idea since it would allow reuse of a single
> source in different ways.
>
> Charlie
>
> On Fri, May 6, 2011 at 6:30 AM, Oleg Gerovich <[email protected]> 
> wrote:
>> Charlie,
>> Thanks for providing the fix. We verified that it works in 2.5.10. 
>> TestCaseData for TestCaseSource works as well. However, we would like to be 
>> able to specify the category inline as well:
>>
>> [TestCaseSource("dataList", Category="A")]
>>
>> That will reduce the amount of code TestCaseData requires. Should I open
>> a separate request for this?
>>
>> --
>> You received this bug notification because you are a bug assignee.
>> https://bugs.launchpad.net/bugs/691129
>>
>> Title:
>>  Add Category parameter to TestFixture
>>
>

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

Title:
  Add Category parameter to TestFixture

Status in NUnit V2 Test Framework:
  Fix Committed
Status in NUnit V2 2.5 series:
  Fix Committed
Status in NUnit V2 2.6 series:
  Invalid

Bug description:
  Per discussion here: http://groups.google.com/group/nunit-
  discuss/browse_thread/thread/aae9015a485921e4?hl=en

  Please add a way to specify categories for parameterized test
  fixtures. This will allow control over execution. NUnit GUI should
  respect these settings as well.

  [TestFixture("string1", Category="A")] 
  [TestFixture("string2", Category="B")] 

  Would appreciate it in NUnit 2.x if at all possible (and soon). Thank
  you!

_______________________________________________
Mailing list: https://launchpad.net/~nunit-core
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~nunit-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to