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

Allow execution of test files that don't end with .Tests.ps1 #270

Closed
dlwyatt opened this issue Jan 27, 2015 · 0 comments
Closed

Allow execution of test files that don't end with .Tests.ps1 #270

dlwyatt opened this issue Jan 27, 2015 · 0 comments
Assignees

Comments

@dlwyatt
Copy link
Member

dlwyatt commented Jan 27, 2015

If a full path to a file name is passed to the -Path argument of Invoke-Pester, just treat that as a test file and run it. The *.Tests.ps1 filter should be applied if -Path is given a folder name rather than a file.

@dlwyatt dlwyatt self-assigned this Jan 27, 2015
dlwyatt added a commit to dlwyatt/Pester that referenced this issue Jan 27, 2015
This is a first crack at resolving issues pester#270 and pester#271 .  I haven't written any tests around this new code yet, but it does successfully run all of Pester's existing tests (except for those looking specifically for the -Path parameter on New-PesterState; that's been removed since nothing but Invoke-Pester was actually looking at it.)
@dlwyatt dlwyatt mentioned this issue Jan 27, 2015
@dlwyatt dlwyatt closed this as completed Feb 3, 2015
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

No branches or pull requests

1 participant