Search Issue Tracker
Fixed
Fixed in 1.4.6, 1.5.1
Votes
1
Found in [Package]
1.4.5
1.5.1
Issue ID
DSTR-1065
Regression
No
System.InvalidOperationException is generated in exported XML when running asynchronous tests in Edit mode
How to reproduce:
1. Open the attached “IN-86059” project
2. Open the Test Runner window (Window → General → Test Runner)
3. Ensure the “EditMode” tab is selected
4. Select “Run All”
5. Select “Export Results”
6. Open the generated XML file and observe the results
Expected result: The test results show no errors
Actual result: The test results contain a “System.InvalidOperationException : EditMode test can only yield null" error
Reproducible in: 1.4.5 (2021.3.44f1, 2022.3.50f1, 6000.0.23f1)
Not reproducible in: 2.0.1-pre.18 (2021.3.44f1, 2022.3.50f1)
Fixed in: 2.0.1-exp.1 (2021.3.44f1, 2022.3.50f1)
Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environments tested
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note (fix version 1.5.1):
Async Editmode tests are no longer throwing errors when yielding something different than null, as it's allowed to yield different values in async tests.
Resolution Note (fix version 1.4.6):
Async Editmode tests are no longer throwing errors when yielding something different than null, as it's allowed to yield different values in async tests.