Skip to content
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

Small fix for PowerShell v2 #441

Merged
merged 1 commit into from Dec 20, 2015
Merged

Small fix for PowerShell v2 #441

merged 1 commit into from Dec 20, 2015

Conversation

dlwyatt
Copy link
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.

None yet

1 participant