nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #01733
[Bug 785460] [NEW] Add Category parameter to TestCaseSourceAttribute
Public bug reported:
By email from Oleg Gerovich:
I am unable to enter bugs on Launchpad, so I'm emailing you per your
request.
We need the following feature (came out of discussion of bug 691129).
Add Category parameter in TestCaseSource. Example:
[TestCaseSource("dataList1", Category="Dev")]
[TestCaseSource("dataList2", Category="Production"]
NUnit should execute all tests in dataList1 if Dev category was accepted
and all tests in dataList2 if Production category is accepted. That
should be the default behavior. You can also add an option like
"CategorySource", which can be set to "TestCaseSource" to result in
default behavior or to "TestCaseData" to run tests in dataList1/2 that
have category Dev/Production (this is your approach #1 in bug 691129).
We are interested in the default behavior right now, so if adding the
option is troublesome, it's not a big deal. Option names/values are up
to you.
** Affects: nunitv2
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/785460
Title:
Add Category parameter to TestCaseSourceAttribute
Status in NUnit V2 Test Framework:
New
Bug description:
By email from Oleg Gerovich:
I am unable to enter bugs on Launchpad, so I'm emailing you per your
request.
We need the following feature (came out of discussion of bug 691129).
Add Category parameter in TestCaseSource. Example:
[TestCaseSource("dataList1", Category="Dev")]
[TestCaseSource("dataList2", Category="Production"]
NUnit should execute all tests in dataList1 if Dev category was
accepted and all tests in dataList2 if Production category is
accepted. That should be the default behavior. You can also add an
option like "CategorySource", which can be set to "TestCaseSource" to
result in default behavior or to "TestCaseData" to run tests in
dataList1/2 that have category Dev/Production (this is your approach
#1 in bug 691129). We are interested in the default behavior right
now, so if adding the option is troublesome, it's not a big deal.
Option names/values are up to you.
Follow ups
-
[Bug 785460] Re: Add Category parameter to TestCaseSourceAttribute
From: Charlie Poole, 2013-10-05
-
[Bug 785460] Re: Add Category parameter to TestCaseSourceAttribute
From: Charlie Poole, 2011-12-04
-
[Bug 785460] Re: Add Category parameter to TestCaseSourceAttribute
From: Launchpad Bug Tracker, 2011-12-04
-
[Bug 785460] Re: Add Category parameter to TestCaseSourceAttribute
From: Charlie Poole, 2011-11-26
-
[Bug 785460] Re: Add Category parameter to TestCaseSourceAttribute
From: Charlie Poole, 2011-11-20
-
[Bug 785460] Re: Add Category parameter to TestCaseSourceAttribute
From: Launchpad Bug Tracker, 2011-10-21
-
[Bug 785460] Re: Add Category parameter to TestCaseSourceAttribute
From: Charlie Poole, 2011-10-21
-
[Bug 785460] Re: Add Category parameter to TestCaseSourceAttribute
From: Charlie Poole, 2011-10-20
-
[Bug 785460] Re: Add Category parameter to TestCaseSourceAttribute
From: Charlie Poole, 2011-07-16
-
[Bug 785460] Re: Add Category parameter to TestCaseSourceAttribute
From: Charlie Poole, 2011-05-25
-
[Bug 785460] Re: Add Category parameter to TestCaseSourceAttribute
From: Oleg Gerovich, 2011-05-20
-
[Bug 785460] Re: Add Category parameter to TestCaseSourceAttribute
From: Charlie Poole, 2011-05-19
-
[Bug 785460] [NEW] Add Category parameter to TestCaseSourceAttribute
From: Charlie Poole, 2011-05-19
References