Skip to content

Small fix for PowerShell v2#441

Merged
dlwyatt merged 1 commit intopester:masterfrom
dlwyatt:V2Fix
Dec 20, 2015
Merged

Small fix for PowerShell v2#441
dlwyatt merged 1 commit intopester:masterfrom
dlwyatt:V2Fix

Conversation

@dlwyatt
Copy link
Copy Markdown
Member

@dlwyatt dlwyatt commented Dec 20, 2015

Noticed that Invoke-Pester was throwing an exception if no Tests.ps1 files are found, but only in PowerShell v2. It's due to the behavior of the foreach loop when it enumerates over $null, which is a common v2 gotcha.

dlwyatt added a commit that referenced this pull request Dec 20, 2015
Small fix for PowerShell v2
@dlwyatt dlwyatt merged commit 497705f into pester:master Dec 20, 2015
@dlwyatt dlwyatt deleted the V2Fix branch December 20, 2015 15:49
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