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
-
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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Resolution Note:
Unfortunately the engineering team is unable to further work on investigation of this issue due to other priorities.