Skip to content

Pester spec to verify that Exec executes script block in the specified working directory#1

Merged
tiksn merged 2 commits intotiksn:masterfrom
UberDoodles:exec-workdir-test
Sep 13, 2019
Merged

Pester spec to verify that Exec executes script block in the specified working directory#1
tiksn merged 2 commits intotiksn:masterfrom
UberDoodles:exec-workdir-test

Conversation

@UberDoodles
Copy link
Copy Markdown

Description

Created a Pester spec which ensures the Exec function executes the provided script block in the specified working directory (including retries), and returns to the original location afterwards.

Related Issue

psake#287

Motivation and Context

Will ensure that your fix isn't regressed by future changes to the function.

How Has This Been Tested?

I've tested the test against your code.

Screenshots (if appropriate):

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.

@tiksn tiksn merged commit aeaee70 into tiksn:master Sep 13, 2019
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.

2 participants