Skip to content

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

Merged
devblackops merged 1 commit intopsake:mainfrom
webtroter:patch-1
Aug 12, 2021
Merged

Changes $configuration.Run.PassThru to $True#52
devblackops merged 1 commit intopsake:mainfrom
webtroter:patch-1

Conversation

@webtroter
Copy link
Contributor

@webtroter webtroter commented Aug 11, 2021

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Before Pester V5, the -PassThru parameter was used.

We could either use the -PassThru parameter, or set the run configuration in the Configuration Parameter.
@devblackops devblackops self-requested a review August 12, 2021 05:06
@devblackops devblackops self-assigned this Aug 12, 2021
@devblackops devblackops added the bug Something isn't working label Aug 12, 2021
@devblackops devblackops merged commit 9129ea6 into psake:main Aug 12, 2021
HeyItsGilbert added a commit that referenced this pull request Oct 6, 2024
### Changed

- Bump Pester to latest 5.6.1

### Fixed

- [**#52**](#52) Pester
object wasn't being passed back after running tests, causing the Pester
task to never fail (via [@webtroter](https://github.com/webtroter))
- [**#55**](#55) Add
`-Module` parameter to `Build-PSBuildUpdatableHelp` (via
[@IMJLA](https://github.com/IMJLA))
- [**#60**](#60) Fix
Windows PowerShell compatibility in `Initialize-PSBuild` (via
[@joshooaj](https://github.com/joshooaj))
- [**#62**](#62) Fix code
coverage output fle format not working (via
[@OpsM0nkey](https://github.com/OpsM0nkey))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants