Skip to content

Commit 034aaad

Browse files
Added folder creation for test results
1 parent c1441c1 commit 034aaad

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

PSModuleDevelopment/tests/pester.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@
1111
$Filter = "*.Tests.ps1"
1212
)
1313

14-
Write-Host "Starting Tests" -ForegroundColor Green
14+
Write-PSFMessage -Level Host -Message "Starting Tests"
1515

16-
Write-Host "Importing Module" -ForegroundColor Cyan
16+
Write-PSFMessage -Level Host -Message "Importing Module"
1717

1818
Remove-Module PSModuleDevelopment -ErrorAction Ignore
1919
Import-Module "$PSScriptRoot\..\PSModuleDevelopment.psd1"
2020
Import-Module "$PSScriptRoot\..\PSModuleDevelopment.psm1" -Force
2121

22+
Write-PSFMessage -Level Host -Message "Creating test result folder"
23+
$null = New-Item -Path "$PSScriptRoot\..\.." -Name TestResults -ItemType Directory -Force
24+
2225
$totalFailed = 0
2326
$totalRun = 0
2427

0 commit comments

Comments
 (0)