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
- Character spacing value is not applied when using a specific font asset
- [Android][IL2CPP] Player crashes on __memcpy_aarch64_simd+276 when invoking native code via a plugin on some ARM64 Android devices
- [Android]Resources fail to load when the AAB build contains a large Addressables Bundle
- Unity is loading internal version of SharpZipLib instead of local version
- The Context Menu items are ordered incorrectly
Add comment