Skip to content

Feature: Add support for additional Pester test configuration options #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 21, 2025

Conversation

joshooaj
Copy link
Member

Description

  • Add SkipRemainingOnFailure and OutputVerbosity to $PSBPreference.Test with default values of None and Detailed respectively
  • Add the same options as parameters to Test-PSBuildPester
  • Pass the new parameters to Test-PSBuildPester from IB.tasks.ps1 and psakeFile.ps1.
  • Update the readme and changelog

Related Issue

#80

Motivation and Context

I want to be able to skip all remaining tests after the first failed test in the run, and I would like to reduce the Pester test output verbosity to minimize noise in the terminal and make it easier to identify important information about failed tests.

How Has This Been Tested?

No additional tests have been added yet, but the existing tests still pass.

Checklist:

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

@joshooaj joshooaj requested a review from HeyItsGilbert May 20, 2025 20:56
@joshooaj joshooaj force-pushed the joshooaj/pester-settings branch from a792c7d to c3e1b81 Compare May 20, 2025 21:13
@joshooaj joshooaj force-pushed the joshooaj/pester-settings branch from c3e1b81 to 456c76e Compare May 20, 2025 22:01
@joshooaj joshooaj merged commit 63340de into psake:main May 21, 2025
3 checks passed
@joshooaj
Copy link
Member Author

Merged after chat with @HeyItsGilbert

@joshooaj joshooaj deleted the joshooaj/pester-settings branch May 21, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant