Skip to content

Added do {} until ($true) loops around test script block calls.#290

Merged
dlwyatt merged 1 commit intopester:masterfrom
dlwyatt:RowdyBreakAndContinue
Mar 8, 2015
Merged

Added do {} until ($true) loops around test script block calls.#290
dlwyatt merged 1 commit intopester:masterfrom
dlwyatt:RowdyBreakAndContinue

Conversation

@dlwyatt
Copy link
Copy Markdown
Member

@dlwyatt dlwyatt commented Mar 8, 2015

This way if the test code (or code under test) has a misplaced break or continue statement, it won't cause the whole Pester run to abort. (Break / continue statements with labels will still cause this to happen, unfortunately; not sure if there's anything we can do about that.)

Fixes #289

dlwyatt added a commit that referenced this pull request Mar 8, 2015
Added do {} until ($true) loops around test script block calls.
@dlwyatt dlwyatt merged commit 6b7398e into pester:master Mar 8, 2015
@dlwyatt dlwyatt deleted the RowdyBreakAndContinue branch March 8, 2015 18:07
This way if the test code (or code under test) has a misplaced break or continue statement, it won't cause the whole Pester run to abort.  (Break / continue statements with labels will still cause this to happen, unfortunately; not sure if there's anything we can do about that.)

Fixes pester#289
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.

PowerShell 'break' statement is problematic in Pester

1 participant