Search Issue Tracker
By Design
Votes
0
Found in
5.6.0f1
Issue ID
892798
Regression
Yes
Running editor tests with Batch Mode and -quit does not write results to XML file
Reproduction Steps:
1. Import attached project.
2. Using the command-line (batch mode), run project with any of these arguments:
"C:\Program Files\Unity560\Editor\Unity.exe" -runEditorTests -projectPath "C:\Users\{my_user}\Desktop\TestRunner" -batchmode -quit
"C:\Program Files\Unity560\Editor\Unity.exe" -runEditorTests -projectPath "C:\Users\{my_user}\Desktop\TestRunner" -batchmode -quit -editorTestsResultFile "C:\Users\{my_user}\Desktop\TestRunner\tests.xml"
"C:\Program Files\Unity560\Editor\Unity.exe" -runEditorTests -projectPath "C:\Users\{my_user}\Desktop\TestRunner" -batchmode -quit -editorTestsResultFile "C:\Users\{my_user}\Desktop\TestRunner\tests.xml" -logFile "C:\Users\{my_user}\Desktop\TestRunner\log.txt"
Expected results: Command-line displays editor test results.
Actual results: Command-line seems to ignore commands and doesn't display results. (Image attached)
Reproducible with: 5.6.0f1, 2017.1.0a4
Not reproducible with: 5.4.5f1, 5.5.2p3
Regression introduced in: 5.6.0b2
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
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts which worked with TMP Font Asset Creator
AndyJenkins30
Aug 03, 2017 08:41
Just thought I would mention here, '-quit' doesn't work nicely with test runner in the command line. If you'd like to set up an automated test run via command line, you should use '-batchmode' instead to close Unity after the test run has complete.
Unity.exe -batchmode -projectPath PATH_TO_PROJECT -runEditorTests -editorTestsResultFile .\testresults.xml