TestCaseSource and TestFixtureSetUp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
Triaged
|
High
|
Unassigned |
Bug Description
[Issue now tracked at https:/
Obviously, the current implementation is the following:
- First, the Properties which are used for TestCaseSource are asked (static or not)
- Then the methods attributed with TestFixtureSetUp are called.
- Then test startup is done
and the test called.
It is possible to change the first two steps? The current behaviour is a problem for us. Because the property for the TestCaseSource should have some data from the database which the Connection is established in FixtureSetUp. The parameter vor the database, username, password and so on are set in the constructor of the class.
Now, I have hacked they in manually. This is not quite a nice way. ;-)
description: | updated |
tags: | added: framework |
tags: | added: feature |
tags: |
added: github removed: feature framework |
description: | updated |
See also bug #538070 and the Parameterized Tests blueprint at /blueprints. launchpad. net/nunit- 3.0/+spec/ parameterized- tests.
https:/
Creation of static test cases is done at the time of loading the test,
so it's not merely a question of order - it's done only once per load
rather than once per test run.
Dynamic test cases will not exist until the test is run and we'll make
sure in the implementation that TestFixtureSetUp can influence the
creation of the tests.