This is a known problem with NUnit 2.x, which requires significant design changes in order to fix. For that reason, it has been scheduled for correction in the NUnit 3.0 project.
Under NUnit 2.x, the Gui display is not separate from the structure of the tests themselves. That is, when you select a flat list, the tests are loaded by the nunit core without the hierarchical information that is needed to run the SetUpFixtures for a given namespace. In the NUnit 3.0 design, the structure shown in the Gui is entirely separate from the actual structure of the loaded tests. (Changed the title so it fits with 3.0 as well as 2.x.) ** Changed in: nunit-3.0 Status: New => Triaged ** Changed in: nunit-3.0 Importance: Undecided => High -- You received this bug notification because you are a member of NUnit Core Developers, which is the registrant for NUnit Framework. https://bugs.launchpad.net/bugs/807873 Title: [SetUpFixture] is not working as expected in GUI - Flat list mode Status in NUnit Test Framework: Triaged Status in NUnit V2 Test Framework: Won't Fix Bug description: When Settings->Gui->Tree Display->Test structure->Flat list of TestFixtures is selected then 1. [SetUpFixture] methods are not being called when GUI Runner is used 2.Class having [SetUpFixture] attribute is being shown in tests list in the GUI. To manage notifications about this bug go to: https://bugs.launchpad.net/nunit-3.0/+bug/807873/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~nunit-core Post to : nunit-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~nunit-core More help : https://help.launchpad.net/ListHelp