Skip to content

How to call Invoke-Pester and get the results? #84

@staxmanade

Description

@staxmanade

If I have a powershell build script and I want to call Invoke-Pester, how can I determine the exit status of the command?

I in change #18 the addition of the -ExitCode parameter, but when include this parameter it closes my powershell window. Not what I want...

How do I get a handle to the test results of Invoke-Pester? Something like '$LASTEXITCODE` will do, but even a Powershell object with more test results would be good.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions