Comment 7 for bug 1047272

Revision history for this message
Charlie Poole (charlie.poole) wrote :

I'm afraid I got a little confused between the 2.6.1 release and the work I'm doing for NUnitLite and NUnit 3.0. In the latter, newer, versions, full test info is made available to TestFixtureSetUp and TestFixtureTearDown methods. In 2.6.1, the information is really only available for the test itself and for Setup and TearDown.

I'm changing this to a feature request for 2.6.2. It's actually not clear if we will be able to do it, however. Both NUnit 3.0 and NUnitLite use a completely new design for executing tests, which has made it possible for us to provide this feature. I'll have to check and see if we can make the info available using the 2.6 codebase, without major design changes.

One comment: you indicate you use the TestFixtureSetUp method before each test to determine if the test should be executed. This isn't possible, because the TestFixtureSetUp method doesn't run before each test. It only runs once, before all the tests.

Charlie