File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 1
1
# The tests in here do not work properly in PowerShell 5.x
2
2
# If you run them all at once, you will get a lot of FALSE PASSES using the old code
3
3
# Running one test at a time in a new powershell session solves this problem:
4
- if (Get-Command powershell.exe - ErrorAction SilentlyContinue) {
5
- foreach ($testcase in ls $PSScriptRoot \Tests\* .Tests.ps1) {
6
- powershell - NoProfile - Command Invoke-Pester $testcase.FullName
7
- }
8
- } else {
9
- Write-Warning " Skipping Windows PowerShell tests"
4
+ if (Get-Command powershell.exe - ErrorAction SilentlyContinue) {
5
+ foreach ($testcase in ls $PSScriptRoot \Tests\* .Tests.ps1) {
6
+ powershell - NoProfile - Command Invoke-Pester $testcase.FullName
10
7
}
8
+ } else {
9
+ Write-Warning " Skipping Windows PowerShell tests"
10
+ }
11
11
12
- if (Get-Command pwsh - ErrorAction SilentlyContinue) {
13
- foreach ($testcase in ls $PSScriptRoot \Tests\* .Tests.ps1) {
14
- pwsh - NoProfile - Command Invoke-Pester $testcase.FullName
15
- }
16
- } else {
17
- Write-Warning " Skipping PowerShell Core tests"
12
+ if (Get-Command pwsh - ErrorAction SilentlyContinue) {
13
+ foreach ($testcase in ls $PSScriptRoot \Tests\* .Tests.ps1) {
14
+ pwsh - NoProfile - Command Invoke-Pester $testcase.FullName
18
15
}
19
- }
16
+ } else {
17
+ Write-Warning " Skipping PowerShell Core tests"
18
+ }
You can’t perform that action at this time.
0 commit comments