-
Notifications
You must be signed in to change notification settings - Fork 500
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
Run single Pester test #2441
Run single Pester test #2441
Conversation
This looks good to me, when are you targeting Pester 5 to come out? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
The previous commit was broken it actually run all the files in the current path. I hope that it is okay to put the settings on language server settings object, because that is where the majority of other settings are, and it required least amount of changes to the code. While I was at it I also added output option for verbosity. All the settings work for both v4 and v5 and were tested with the other PR in powershell editor services. The expected behavior is:
If this gets merged when can I expect it in PowerShell preview extension? It would be nice to have so I can use it without running VSCode in VSCode. |
I need to move this file into PSES repo so it can be signed. If you'd like to sign up to do that, that'd be great, otherwise, hopefully we can get this PR in soon so I can move it. |
Okay, will finish this today. :) |
PR Summary
Add support for Pester v5 to run single test, all tests in any describe or all tests in via the task.
The VSCodeMarker is not provided. The Pester side would work, but the highlighting (or what was it for) does not work in VSCode, and so it only makes the output uglier, with stacktrace on the top.
To test this you need Pester v5 ( branch
filter-by-lines
or once mergedv5.0
), you will also need the updated lense from powershell services (branch same as here). Once your VSCode is started with the new version (after running the extension by F5), open a .Tests.ps1 file and load Pester v5.PR Checklist
Note: Tick the boxes below that apply to this pull request by putting an
x
between the square brackets.Please mark anything not applicable to this PR
NA
.This is be safe to merge, the new behavior is version checked.