Skip to content

Feature Request: Setting to enable a prefix to Pester 5 Test Problem matches #3251

Open
@JustinGrote

Description

@JustinGrote

Summary of the new feature
The latest release fixed Pester 5 problem matching. This is welcome however it is often not immediately obvious that the issue is due to a failed test since it directly uses the syntax of the test. Initial inspection I often think they are syntax errors until I realize what's going on.

Proposed technical implementation details (optional)

The pester problem message should be what Pester reported the error as along with a prepend (e.g. "Test Failed: Expected $true but got $false" and then the source field should be the name of the test, similar to how PSScriptAnalyzer operates.

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions