Skip to content

Commit 695a82c

Browse files
chore: fix tests
1 parent bd0b683 commit 695a82c

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

test/run_test.ps1

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ if (-not(Test-Path -Path $testPath -PathType Leaf))
88
exit 1;
99
}
1010

11-
# using scoop to install pester
12-
mkdir C:\TMP;
13-
powershell.exe -ExecutionPolicy RemoteSigned `Invoke-WebRequest 'https://get.scoop.sh' -outfile C:\TMP\install.ps1;
14-
C:\TMP\install.ps1 -RunAsAdmin;
15-
scoop install pester;
11+
Install-Module -Force Pester
12+
If ($? -ne "True" ) { Throw };
1613

17-
$config = New-PesterConfiguration;
18-
$config.Run.Path = "$testPath";
14+
$config=New-PesterConfiguration;
15+
If ($? -ne "True" ) { Throw };
16+
$config.Run.Exit=$true;
17+
If ($? -ne "True" ) { Throw };
18+
$config.Run.Path="$testPath";
19+
If ($? -ne "True" ) { Throw };
1920

20-
Invoke-Pester -CI -Configuration $config;
21+
Invoke-Pester -Configuration $config;
22+
If ($? -ne "True" ) { Throw };

0 commit comments

Comments
 (0)