Need a way to generate data when test is executed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
Confirmed
|
High
|
Unassigned |
Bug Description
[Bug now tracked at https:/
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 NotImplementedE
summary: |
- TestCaseSource run even if test not run + Need a way to generate data when test is executed |
tags: | added: feature |
Changed in nunitv2: | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: framework |
affects: | nunitv2 → nunit-3.0 |
description: | updated |
tags: |
added: github removed: feature framework |
We use TestCaseSource translate QUnit javascript tests into Nunit results (reading the HTML page loaded via Watin). The consequence of the NUnit 2-0 behavior is that all QUnit tests run as soon as you load the NUnit framework. There are other scenarios where this would be useful if I leverage categories to run on specific data driven tests.