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 ad7b71c commit 86eeba9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
shell: pwsh
run: |
cd out/build/${{ matrix.preset }}
${{ github.workspace }}/azure-pipelines/end-to-end-tests.ps1 -RunArtifactsTests
Get-Module Pester -ListAvailable
${{ 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."
11 changes: 11 additions & 0 deletions azure-pipelines/end-to-end-tests-dir/0-expect-2-fail.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
BeforeAll {
$poshVcpkgModulePath = "$PSScriptRoot/../../scripts/posh-vcpkg.psd1"
# $poshVcpkgInfo = Import-PowerShellDataFile -Path $poshVcpkgModulePath
# $poshVcpkgInfo | Should -BeOfType 'Hashtable'
# Get-Module -Name 'posh-vcpkg' | Should -BeNullOrEmpty
Import-Module $poshVcpkgModulePath
}

Describe 'Module posh-vcpkg tests' {
It 'Expect fail' {}
}

0 comments on commit 86eeba9

Please sign in to comment.