You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UnitySetup/UnitySetup.psm1
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -776,6 +776,12 @@ function Get-UnityProjectInstance {
776
776
Where to put the results? Unity states, "If the path is a folder, the command line uses a default file name. If not specified, it places the results in the project’s root folder."
777
777
.PARAMETERRunEditorTests
778
778
Should Unity run the editor tests? Unity states, "[...]it’s good practice to run it with batchmode argument. quit is not required, because the Editor automatically closes down after the run is finished."
779
+
.PARAMETERTestPlatform
780
+
The platform you want to run the tests on. Note that If unspecified, tests run in editmode by default.
781
+
.PARAMETERTestResults
782
+
The path indicating where Unity should save the result file. By default, Unity saves it in the Project’s root folder.
783
+
.PARAMETERRunTests
784
+
Should Unity run tests? Unity states, "[...]it’s good practice to run it with batchmode argument. quit is not required, because the Editor automatically closes down after the run is finished."
779
785
.PARAMETERBatchMode
780
786
Should the Unity Editor start in batch mode?
781
787
.PARAMETERQuit
@@ -850,6 +856,13 @@ function Start-UnityEditor {
850
856
[parameter(Mandatory=$false)]
851
857
[switch]$RunEditorTests,
852
858
[parameter(Mandatory=$false)]
859
+
[ValidateSet('EditMode','PlayMode')]
860
+
[string]$TestPlatform,
861
+
[parameter(Mandatory=$false)]
862
+
[string]$TestResults,
863
+
[parameter(Mandatory=$false)]
864
+
[switch]$RunTests,
865
+
[parameter(Mandatory=$false)]
853
866
[switch]$BatchMode,
854
867
[parameter(Mandatory=$false)]
855
868
[switch]$Quit,
@@ -945,6 +958,9 @@ function Start-UnityEditor {
945
958
if ( $EditorTestsFilter ) { $sharedArgs+='-editorTestsFilter', ($EditorTestsFilter-join',') }
946
959
if ( $EditorTestsResultFile ) { $sharedArgs+='-editorTestsResultFile',$EditorTestsResultFile }
947
960
if ( $RunEditorTests ) { $sharedArgs+='-runEditorTests' }
961
+
if ( $TestPlatform ) { $sharedArgs+='-testPlatform',$TestPlatform }
962
+
if ( $TestResults ) { $sharedArgs+='-testResults',$TestResults }
0 commit comments