Skip to content

Commit

Permalink
Test (integration): Fix, tweak, and maximize use of verbose output fo…
Browse files Browse the repository at this point in the history
…r displaying test results
  • Loading branch information
joeltimothyoh committed Apr 26, 2024
1 parent df03eea commit 3d4998f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci-master-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Test
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
test-powershell-macos:
runs-on: macos-latest
Expand All @@ -35,7 +35,7 @@ jobs:
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Test
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
test-powershell-windows:
runs-on: windows-latest
Expand All @@ -48,7 +48,7 @@ jobs:
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Test
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
test-powershell-5-1-windows-2019:
runs-on: windows-2019
Expand All @@ -61,7 +61,7 @@ jobs:
powershell -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Test
run: |
powershell -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
powershell -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
##########
# Docker #
Expand All @@ -81,7 +81,7 @@ jobs:
- name: Test
run: |
git config --global --add safe.directory '*'
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
test-powershell-7-3:
runs-on: ubuntu-latest
Expand All @@ -97,7 +97,7 @@ jobs:
- name: Test
run: |
git config --global --add safe.directory '*'
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
test-powershell-7-4:
runs-on: ubuntu-latest
Expand All @@ -113,4 +113,4 @@ jobs:
- name: Test
run: |
git config --global --add safe.directory '*'
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
4 changes: 2 additions & 2 deletions test/PSRepositoryReleaseManager.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $functionTestScriptBlock = {
$stdout = & $script:cmd
}
"Generate notes content:" | Write-Verbose
Get-Content -Path "$stdout" | Out-String -Stream | % { $_.Trim() } | ? { $_ } | Write-Host
$stdout | Out-String -Stream | % { $_.Trim() } | ? { $_ } | Write-Host
}
}catch {
$_ | Write-Error
Expand All @@ -32,7 +32,7 @@ $env:RELEASE_TAG_REF = git describe --tags --abbrev=0

# Script: ci/Invoke-Generate.ps1
$ReleaseNotesVariant = Get-ChildItem "../src/PSRepositoryReleaseManager/generate/variants" | % { $_.BaseName }
"Release Notes Variants:" | Write-Verbose
"Release notes variants:" | Write-Verbose
$ReleaseNotesVariant | Write-Host

foreach ($variant in $ReleaseNotesVariant) {
Expand Down

0 comments on commit 3d4998f

Please sign in to comment.