Skip to content

Run Invoke-Pester on tests.ps1 file using right-click context menu on file tab and/or shortcut #1667

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

Closed
bergmeister opened this issue Dec 20, 2018 · 1 comment
Labels
Issue-Enhancement A feature request (enhancement).

Comments

@bergmeister
Copy link
Contributor

Summary of the new feature

As a user, I quite often want to run ALL Pester tests of a tests.ps1 file but I have either multiple Describe blocks or don't want to scroll up and down to run tests. I then use the Copy Path context menu on the file tab just to run Invoke-Pester on that in the console.

Proposed technical implementation details (optional)

If the file ends in tests.ps1 (case insensitive lookup), then a context menu on the file tab should be there that says Run Pester Tests and Debug Pester Tests and under the hood it just calls Invoke-Pester -Path with the full path of the file in the integrated PowerShell console. A keyboard shortcut for this would be cool as well.

@bergmeister bergmeister changed the title Run Invoke-Pester using right-click context menu on file tab Run Invoke-Pester on tests.ps1 file using right-click context menu on file tab and/or shortcut Dec 20, 2018
@rjmholt rjmholt added the Issue-Enhancement A feature request (enhancement). label Dec 20, 2018
@rkeithhill
Copy link
Contributor

Fixed in the next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

No branches or pull requests

3 participants