Search Issue Tracker
Won't Fix
Under Consideration for 2021.3.X, 2022.3.X
Votes
3
Found in
2021.3.26f1
2022.3.0f1
Issue ID
UUM-37967
Regression
No
[Linux] Editor assertion causes Test Runner to fail when executing it in Batch Mode
Reproduction steps:
1. Open the attached "Test Project" project
2. Open Window > General > Test Runner window
3. Select "PlayMode" and press "Run All"
4. Observe the Test Runner window
5. Close the project
6. Execute this command in the Console: "{Unity Version Path} -runTests -batchmode -projectPath {Project Path} -testResults {Results Output Path}/results.xml -testPlatform PlayMode"
7. Open the "results.xml" file generated from the command
Expected result: All tests passed same as in the Editor
Actual result: Some tests fail
Reproducible with: 2021.3.26f1, 2022.3.0f1
Couldn't test with: 2023.1.0b19, 2023.2.0a17 - Error in the Console: {{The type 'UnityEngine.AsyncOperation' cannot be used as type parameter 'T' in the generic type or method 'EnumeratorAsyncExtensions.GetAwaiter<T>(T)'. There is no implicit reference conversion from 'UnityEngine.AsyncOperation' to 'System.Collections.IEnumerator'.}}
Reproducible on: Ubuntu 22.04
Not reproducible on: Windows 10
Note:
- The result is inconsistent. On Ubuntu sometimes Tests finish without any failures, sometimes with some failures. On Windows all the times the Tests finish without failures
Comments (2)
-
ml-joaoborks
Jun 28, 2023 14:47
This issue is not reproducible on standalone tests. If you run the Test Runner in standalone mode (either linux or windows), it succeeds.
-
joaoborks
Jun 15, 2023 21:51
The error I'm getting is:
Unhandled log message: '[Assert] Assertion failed on expression: '!(GetPersistentManager().IsStreamLoaded(pathName) && !GetPersistentManager().HasMemoryOrCachedSerializedFile(pathName))''. Use UnityEngine.TestTools.LogAssert.Expect
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
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
- Last segment of a Sprite Shape Spline is affected by other segments' Sprite Variant change when no edge Sprite is selected
- [iOS] Application frequently crashes on Social.LoadAchievements call when many achievements are registered
Resolution Note:
Unfortunately the engineering team is unable to further work on investigation of this issue due to other priorities.