Skip to content

Pester tests assertion update - #1484

Merged
Tim (timayabi2020) merged 7 commits into
devfrom
pester_inquire_stream_count
Sep 2, 2022
Merged

Tim (timayabi2020) merged 7 commits into
devfrom
pester_inquire_stream_count

Conversation

@timayabi2020

Copy link
Copy Markdown
Contributor

Changes proposed in this pull request

  • Update pester test assertion for module imports that write to streams when debug preference is set to 'Inquire'. The streams debug count returns a value of 2 yet the expected value is 0.

image

Comment thread tools/TestModule.ps1
$PesterConfiguration.TestResult.OutputPath = (Join-Path $ModuleTestsPath "$moduleName-TestResults.xml")

$TestResults = Invoke-Pester -Configuration $PesterConfiguration
If ($TestResults.FailedCount -gt 0) { Write-Error "$($TestResults.FailedCount) tests failed." }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tim (@timayabi2020), why are we changing this to 5? We shouldn't have filing tests.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for flagging this. It was an error from my side. This has been changed

Comment thread tools/TestModule.ps1 Resolved
@timayabi2020
Tim (timayabi2020) merged commit b5f9f95 into dev Sep 2, 2022
@peombwa
Peter Ombwa (peombwa) deleted the pester_inquire_stream_count branch September 14, 2022 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants