Skip to content

HeyItsGilbert/PesterExplorer

Repository files navigation

PesterExplorer

A TUI to explore Pester results.

PowerShell Gallery PowerShell Gallery Version GitHub Workflow Status PowerShell Gallery

Overview

Pester does a wonderful job printing out tests results as they're running. The difficulty can be where you're looking at a large number of results.

Installation

Important

This module is for PowerShell 7. This won't work in Windows PowerShell.

Install-Module PesterExplorer -Scope CurrentUser

Installing this module will install it's dependencies which are Pester and PwshSpectreConsole.

Examples

To explore your result object you simply need to run Show-PesterResult

# Run Pester and make sure to PassThru the object
$pester = Invoke-Pester .\tests\ -PassThru
# Now run the TUI
Show-PesterResult $p

You can also get a tree view of your pester results with Show-PesterResultTree.

# Run Pester and make sure to PassThru the object
$pester = Invoke-Pester .\tests\ -PassThru
# Now get that in a Tree view
Show-PesterResultTree $p

Contributing

Please read the Contributors guidelines.

Make sure you bootstrap your environment by running the build command.

.\build.ps1 -Task Init -Bootstrap

Sponsor this project