nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00330
[Bug 538070] [NEW] TestCaseSource run even if test not run
Public bug reported:
NUnit 2.5.2 and 2.5.3 run every method targeted by TestCaseSource, even
if the test targeting it is Explicit or the test fixture is Explicit.
The behaviour I expect is: NUnit shouldn't run a test's TestCaseSource
if the test itself won't be run.
Detail:
I have an expensive TestCaseSource generating a few hundred thousand
permutations and combinations. I've applied Explicit to both the test
targeting the source and the fixture surrounding both test and source.
NUnit console spends ten minutes needlessly constructing test cases from
the TestCaseSource before ignoring them and proceeding with the non-
Explicit tests.
If I throw NotImplementedException from the first line of the expensive
TestCaseSource. NUnit runs the non-Explicit tests immediately. If I put
a MessageBox.Show call in the first line, I see the message box.
** Affects: nunitv2
Importance: Undecided
Status: New
--
TestCaseSource run even if test not run
https://bugs.launchpad.net/bugs/538070
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
Status in NUnit V2 Test Framework: New
Bug description:
NUnit 2.5.2 and 2.5.3 run every method targeted by TestCaseSource, even if the test targeting it is Explicit or the test fixture is Explicit.
The behaviour I expect is: NUnit shouldn't run a test's TestCaseSource if the test itself won't be run.
Detail:
I have an expensive TestCaseSource generating a few hundred thousand permutations and combinations. I've applied Explicit to both the test targeting the source and the fixture surrounding both test and source.
NUnit console spends ten minutes needlessly constructing test cases from the TestCaseSource before ignoring them and proceeding with the non-Explicit tests.
If I throw NotImplementedException from the first line of the expensive TestCaseSource. NUnit runs the non-Explicit tests immediately. If I put a MessageBox.Show call in the first line, I see the message box.
Follow ups
References