You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add demonstration test for GitHub Actions annotations feature
- Added test in ciModule.Tests.ps1 to demonstrate the annotation feature
- Test intentionally fails to show annotations in CI output
- Verifies relative path conversion and test log links
- Can be removed after feature is verified in actual CI runs
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
# Verify the annotation is generated with relative path (not absolute)
322
+
$output| Should -Match'::error file=test/infrastructure/ciModule.Tests.ps1,line=42'
323
+
324
+
# Verify the test log link is included
325
+
$output| Should -Match'Test logs:.*github.com/PowerShell/PowerShell/actions/runs/12345'
326
+
327
+
# This line intentionally fails to demonstrate the annotation in CI output
328
+
1| Should -Be 2-Because "This test demonstrates GitHub Actions annotations for test failures. Remove this test after verifying the feature works in CI."
0 commit comments