[SetUpFixture] is not working as expected in GUI - Flat list mode

Bug #807873 reported by Hanamantappa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit Framework
Triaged
High
Unassigned

Bug Description

[Issue now tracked at https://github.com/nunit/nunit-framework/issues/8]

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.

Tags: github
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
Revision history for this message
Charlie Poole (charlie.poole) wrote :

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
importance: Undecided → High
tags: added: framework
tags: added: gui
removed: framework
no longer affects: nunitv2
Revision history for this message
Charlie Poole (charlie.poole) wrote :
tags: removed: gui
description: updated
tags: added: github
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.