Skip to content

Tests: Test-PSBuildPester #102

Description

@HeyItsGilbert

Add Pester 6 integration tests for Test-PSBuildPester.

Scenarios to cover:

Scope note: the block/container-failure scenario fails against current code — Test-PSBuildPester.ps1 gates only on FailedCount. The fix (include FailedBlocksCount and FailedContainersCount in the gate, mirroring #128's change to the repo's own psakeFile.ps1) is in scope for the same PR as these tests, so the PR merges green. If #128 is extended to cover the shipped function first, this PR only contributes the regression test.

Implementation note: these tests are Pester-testing-Pester, and two Pester versions cannot coexist in one session. Run the inner Invoke-Pester in a subprocess (Start-Job, as tests/build.tests.ps1 already does) so the inner Pester version is independent of the outer test framework. Then parameterize the inner run across both Pester 5.x and 6.x — the shipped function keeps supporting Pester 5 consumers, and this matrix is what verifies that contract.

Target Pester 6.0.0 (outer framework) with classic Should syntax — see notes on #17. Parent issue: #17

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions