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

Change default behavior to look for the test file associated instead of just running the tests #2

Closed
idavis opened this issue May 2, 2013 · 2 comments

Comments

@idavis
Copy link

idavis commented May 2, 2013

As it works right now, IsePester will run the current script in Pester. I think it would be helpful if the following situation would be supported:

I am working on foo.ps1 with tests in foo.tests.ps1 in the same directory. If I trigger the Pester shortcut while in foo.ps1, the tool should look for foo.tests.ps1 and run it if it exists; otherwise, run the current file.

@dfinke
Copy link
Owner

dfinke commented May 2, 2013

Great idea Ian. I agree. I'm looking at it. Let me know if you want to do a PR. If I don't here from you I'll check in what I come up with.

Thanks
Doug

@dfinke
Copy link
Owner

dfinke commented May 2, 2013

@dfinke dfinke closed this as completed May 2, 2013
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

2 participants