Skip to content

Commit 91ac6c3

Browse files
committed
Update pester in automation helper test
1 parent 166f7a6 commit 91ac6c3

File tree

6 files changed

+726
-385
lines changed

6 files changed

+726
-385
lines changed

ci/tasks/test-units-stemcell-automation/task.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
- name: bosh-windows-stemcell-builder-ci
55
- name: stemcell-builder
66

7+
params:
8+
STEMCELL_AUTOMATION_DIR: stemcell-builder/stembuild/stemcell-automation/
9+
710
run:
811
path: powershell
912
args:
@@ -20,12 +23,17 @@ run:
2023
$pesterModule | Save-Module -Path $moduleDir
2124
Import-Module "$moduleDir\Pester\$($pesterModule.Version)\Pester.psm1"
2225
23-
Import-Module ./bosh-windows-stemcell-builder-ci/ci/common-scripts/setup-windows-container.psm1;
24-
Set-TmpDir;
25-
pushd stemcell-builder/stembuild/stemcell-automation;
26-
$result=Invoke-Pester -PassThru;
26+
Import-Module ./bosh-windows-stemcell-builder-ci/ci/common-scripts/setup-windows-container.psm1
27+
28+
Set-TmpDir
29+
pushd $env:STEMCELL_AUTOMATION_DIR
30+
# NOTE: uncomment the lines below to see full stack trace
31+
# $configuration = New-PesterConfiguration
32+
# $configuration.Output.StackTraceVerbosity = "Full"
33+
# $result=Invoke-Pester -Configuration $configuration
34+
$result=Invoke-Pester -PassThru
2735
popd;
2836
29-
Write-Host "Failed Test Count:"$result.FailedCount;
37+
Write-Host "Failed Test Count:"$result.FailedCount
3038
exit $result.FailedCount
3139
}

0 commit comments

Comments
 (0)