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
- “Look Dev” window restored from previous HDRP project causes errors in newly created URP project
- Shader Variant creation window gets stretched out when canceling
- Validation message "Profile name is unsupported" is unclear and does not provide information on what is wrong
- Enabling Override Variant Limit toggle Warning Threshold value gets set to 8
- Missing space in Shader Graph project settings
Add comment