Search Issue Tracker
By Design
Votes
0
Found in
Issue ID
985926
Regression
No
TestRunner not showing tests with multiple TestFixtures or TestFixtureSource
Steps to reproduce :
Open attached project
Open TestRunner window
Expected : Tests using [TestFixture] or [TestFixtureSource] attribute should show up and work properly in TestRunner window.
Results :
Only the test "IsGreaterThenFive_OneFixture" is shown.
"IsGreaterThenFive_FixtureList" (uses 2 [TestFixture]) doesn't show
"IsGreaterThenFive_FixtureSource" (uses [TestFixtureSource] with 10 values) only shows one test that doesn't work properly.
Probably related - if you're using a parametrized test fixture and you try to specify multiple cases using multiple `[TestFixture]` attributes, then the tests also do not show up.
Conclusion
Nunit does not handle TestFixture or TestFixtureSource well when the class is not in a class.
If the test class in a class this works. The logic here is inside the Nunit framework.
By a result from this we are adding default namespace in the "Create -> Test -> Test Script" class.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Add comment