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
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -742,6 +742,14 @@ function Get-UnityProjectInstance {
742
742
What serial should be used by Unity for activation? Implies BatchMode and Quit if they're not supplied by the User.
743
743
.PARAMETERReturnLicense
744
744
Unity should return the current license it's been activated with. Implies Quit if not supplied by the User.
745
+
.PARAMETEREditorTestsCategories
746
+
Filter tests by category names.
747
+
.PARAMETEREditorTestsFilter
748
+
Filter tests by test names.
749
+
.PARAMETEREditorTestsResultFile
750
+
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."
751
+
.PARAMETERRunEditorTests
752
+
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."
745
753
.PARAMETERBatchMode
746
754
Should the Unity Editor start in batch mode?
747
755
.PARAMETERQuit
@@ -808,6 +816,14 @@ function Start-UnityEditor {
808
816
[parameter(Mandatory=$false)]
809
817
[switch]$ForceFree,
810
818
[parameter(Mandatory=$false)]
819
+
[string[]]$EditorTestsCategory,
820
+
[parameter(Mandatory=$false)]
821
+
[string[]]$EditorTestsFilter,
822
+
[parameter(Mandatory=$false)]
823
+
[string]$EditorTestsResultFile,
824
+
[parameter(Mandatory=$false)]
825
+
[switch]$RunEditorTests,
826
+
[parameter(Mandatory=$false)]
811
827
[switch]$BatchMode,
812
828
[parameter(Mandatory=$false)]
813
829
[switch]$Quit,
@@ -899,6 +915,10 @@ function Start-UnityEditor {
899
915
if ( $ExportPackage ) { $sharedArgs+="-exportPackage","$ExportPackage" }
900
916
if ( $ImportPackage ) { $sharedArgs+="-importPackage","$ImportPackage" }
901
917
if ( $Credential ) { $sharedArgs+='-username',$Credential.UserName }
918
+
if ( $EditorTestsCategory ) { $sharedArgs+='-editorTestsCategories', ($EditorTestsCategory-join',') }
919
+
if ( $EditorTestsFilter ) { $sharedArgs+='-editorTestsFilter', ($EditorTestsFilter-join',') }
920
+
if ( $EditorTestsResultFile ) { $sharedArgs+='-editorTestsResultFile',$EditorTestsResultFile }
921
+
if ( $RunEditorTests ) { $sharedArgs+='-runEditorTests' }
0 commit comments