Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions UnitySetup/UnitySetup.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,14 @@ function Get-UnityProjectInstance {
What serial should be used by Unity for activation? Implies BatchMode and Quit if they're not supplied by the User.
.PARAMETER ReturnLicense
Unity should return the current license it's been activated with. Implies Quit if not supplied by the User.
.PARAMETER EditorTestsCategories
Filter tests by category names.
.PARAMETER EditorTestsFilter
Filter tests by test names.
.PARAMETER EditorTestsResultFile
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."
.PARAMETER RunEditorTests
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."
.PARAMETER BatchMode
Should the Unity Editor start in batch mode?
.PARAMETER Quit
Expand Down Expand Up @@ -808,6 +816,14 @@ function Start-UnityEditor {
[parameter(Mandatory = $false)]
[switch]$ForceFree,
[parameter(Mandatory = $false)]
[string[]]$EditorTestsCategory,
[parameter(Mandatory = $false)]
[string[]]$EditorTestsFilter,
[parameter(Mandatory = $false)]
[string]$EditorTestsResultFile,
[parameter(Mandatory = $false)]
[switch]$RunEditorTests,
[parameter(Mandatory = $false)]
[switch]$BatchMode,
[parameter(Mandatory = $false)]
[switch]$Quit,
Expand Down Expand Up @@ -899,6 +915,10 @@ function Start-UnityEditor {
if ( $ExportPackage ) { $sharedArgs += "-exportPackage", "$ExportPackage" }
if ( $ImportPackage ) { $sharedArgs += "-importPackage", "$ImportPackage" }
if ( $Credential ) { $sharedArgs += '-username', $Credential.UserName }
if ( $EditorTestsCategory ) { $sharedArgs += '-editorTestsCategories', ($EditorTestsCategory -join ',') }
if ( $EditorTestsFilter ) { $sharedArgs += '-editorTestsFilter', ($EditorTestsFilter -join ',') }
if ( $EditorTestsResultFile ) { $sharedArgs += '-editorTestsResultFile', $EditorTestsResultFile }
if ( $RunEditorTests ) { $sharedArgs += '-runEditorTests' }
if ( $ForceFree) { $sharedArgs += '-force-free' }

$instanceArgs = @()
Expand Down