Skip to content

Fixed crash when running pester older than 3.4.5 #2888

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
Aug 14, 2020

Conversation

EmmanuelPineiro
Copy link
Contributor

PR Summary

Calling Invoke-Pester with the -show param would
throw and exception if running a version of pester
older than 3.4.5

Moved logic for building spalt to call
invoke-pester into a function and only added the
show parameter if running pester 3.4.5 or newer

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • NA PR has tests
    • InvokePesterStub did not appear to have tests
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

Calling Invoke-Pester with the -show param was
breaking tests if running a version of pester
older than 3.4.5

Moved logic for building spalt to call
invoke-pester into a function and only added the
show parameter if running pester 3.4.5 or newer
@ghost
Copy link

ghost commented Aug 13, 2020

CLA assistant check
All CLA requirements met.

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a couple whitespace nits :)

@TylerLeonhardt
Copy link
Member

cc @nohwnd in case you wanna review.

EmmanuelPineiro and others added 2 commits August 13, 2020 09:06
Co-authored-by: Tyler James Leonhardt <[email protected]>
Co-authored-by: Tyler James Leonhardt <[email protected]>
@TylerLeonhardt TylerLeonhardt merged commit 9299f0b into PowerShell:master Aug 14, 2020
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.

4 participants