psake / PowerShellBuild

Common build tasks for psake and Invoke-Build that build and test PowerShell modules
MIT License
133 stars 24 forks source link

Changes $configuration.Run.PassThru to $True #52

Closed webtroter closed 3 years ago

webtroter commented 3 years ago

Before Pester V5, the -PassThru parameter was used.

We could either use the -PassThru parameter, or set the run configuration in the Configuration Parameter.

Description

Currently, the Pester task never really fails, because Invoke-Pester doesn't PassThru

Related Issue

51

Motivation and Context

Before the migration to PesterV5, the PassThru parameter was used, and the replacement in V5 was set to false in the PSBuild Task

How Has This Been Tested?

Changing it in my machine makes the task fail as it should.

Types of changes

Checklist: