Skip to content

-show should have an option to write summarized passes #1002

@TravisEz13

Description

@TravisEz13

1. Provide a general summary of the issue in the Title above

-show should have an option to print only summarize passes. Example only a + per pass

2. Describe Your Environment

Operating System, Pester version and PowerShell version:

Pester version     : 4.1.1 /usr/local/share/powershell/Modules/Pester/4.1.1/Pester.psm1
PowerShell version : 6.0.1
OS version         : Unix 17.4.0.0

3. Expected Behavior

ability to print something per test case to satisfy CI requirement, but not full log

4.Current Behavior

To print something per test case I have to print the full test case information. I would like something smaller.

5. Possible Solution

invoke-pester -Show @([Pester.OutputTypes]::Describe,[Pester.OutputTypes]::Summary,[Pester.OutputTypes]::Failed,[Pester.OutputTypes]::PassedSummary)

Where PassedSummary causes only a + to be printed (no newline) per test case.

6. Context

I'm trying to get output similar to the following without having to do a lot a processing of the output:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions