[SetUpFixture] is not working as expected in GUI - Flat list mode
Bug #807873 reported by
Hanamantappa
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
Triaged
|
High
|
Unassigned |
Bug Description
[Issue now tracked at https:/
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.
summary: |
- [SetUpFixture] is working as expected in GUI - Flat list mode + [SetUpFixture] is not working as expected in GUI - Flat list mode |
Changed in nunitv2: | |
status: | New → Won't Fix |
tags: | added: framework |
tags: |
added: gui removed: framework |
no longer affects: | nunitv2 |
description: | updated |
tags: | added: github |
To post a comment you must log in.
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.)