← Back to team overview

nunit-core team mailing list archive

Re: [Bug 691129] Re: Add Category parameter to TestFixture

 

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 <charlie@xxxxxxxxx> 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 <691129@xxxxxxxxxxxxxxxxxx> 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!


References