Skip to content

Commit

Permalink
[e2e] Test end-to-end-tests.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
WangWeiLin-MV committed Oct 21, 2024
1 parent 5534c15 commit adf8f06
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ jobs:
run: |
cd out/build/${{ matrix.preset }}
Import-Module Pester -Force -MinimumVersion '5.6.1'
${{ github.workspace }}/azure-pipelines/end-to-end-tests.ps1 -RunArtifactsTests
${{ github.workspace }}/azure-pipelines/end-to-end-tests.ps1 -RunArtifactsTests -Filter:'0-expect-'
env:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg-root
2 changes: 2 additions & 0 deletions azure-pipelines/end-to-end-tests-dir/0-expect-1-pass.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

Write-Host "It's test 1 pass."
2 changes: 2 additions & 0 deletions azure-pipelines/end-to-end-tests-dir/0-expect-2-pass.Test.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

Write-Host "It's test 2 pass."
10 changes: 10 additions & 0 deletions azure-pipelines/end-to-end-tests-dir/0-expect-3-fail.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

Write-Host "It's test 3 fail."

BeforeAll {
Import-Module $PSScriptRoot/posh-vcpkg
}

Describe 'Module posh-vcpkg tests' {
It 'Expect fail' {}
}
10 changes: 10 additions & 0 deletions azure-pipelines/end-to-end-tests-dir/0-expect-4-fail.Test.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

Write-Host "It's test 4 fail."

BeforeAll {
Import-Module $PSScriptRoot/posh-vcpkg
}

Describe 'Module posh-vcpkg tests' {
It 'Expect fail' {}
}
2 changes: 2 additions & 0 deletions azure-pipelines/end-to-end-tests-dir/0-expect-5-pass.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

Write-Host "It's test 5 pass."
2 changes: 2 additions & 0 deletions azure-pipelines/end-to-end-tests-dir/0-expect-6-pass.Test.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

Write-Host "It's test 1 pass."

0 comments on commit adf8f06

Please sign in to comment.