Skip to content

Errors are not shown in CI - Windows Test - ElevatedPesterTests #11004

@anmenaga

Description

@anmenaga

Non-terminating errors, specifically in BeforeAll sections, are not displayed in CI Test console.
Verbose and Warning messages are displayed just fine.
Not seeing errors in the output makes it really hard to investigate results, especially for test failures that happen only in CI, but not locally.

PS. looks like in Windows Test - UnelevatedPesterTests errors are shown.

Steps to reproduce

  1. add Write-Error "Test Error for CI output" to any BeforeAll section
  2. run this test file in CI Windows Test - ElevatedPesterTests

Expected behavior

error should show up in the output

Actual behavior

There is no error in the output

Metadata

Metadata

Labels

Area-Maintainers-Buildspecific to affecting the buildResolution-No ActivityIssue has had no activity for 6 months or moreWG-Quality-Testissues in a test or in test infrastructure

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions