We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bafb4e commit 5bca446Copy full SHA for 5bca446
test/test.ps1
@@ -6,6 +6,8 @@ $VerbosePreference = 'Continue'
6
$global:PesterDebugPreference_ShowFullErrors = $true
7
8
try {
9
+ Push-Location $PSScriptRoot
10
+
11
# Install test dependencies
12
"Installing test dependencies" | Write-Host
13
& "$PSScriptRoot\scripts\dep\Install-TestDependencies.ps1" > $null
@@ -27,12 +29,14 @@ try {
27
29
}
28
30
31
"Listing test artifacts" | Write-Host
- git ls-files --others --exclude-standard $PSScriptRoot
32
+ git ls-files --others --exclude-standard
33
34
"End of tests" | Write-Host
35
if ($testFailed) {
36
throw "One or more tests failed."
37
38
}catch {
39
throw
40
+}finally {
41
+ Pop-Location
42
0 commit comments