Repository navigation
Add option to tweak console output for better VSCode extension functionality - #479
Conversation
|
Cool. I believe this will work just fine. BTW as I've gotten more experience with the errors and warnings list in VSCode, I've found that it's not just a list but VSCode also decorates the failing test source with red squiggles and displays the That got me thinking that maybe I always grab the message from the third line. VSCode only allows you to pick the What do you think? Also, thanks!! |
|
Only problem with that is that the most common test by far is |
|
Yeah, that is less than ideal. OK, I'll stick with the What do you think about including In the PowerShell extension case, it could be either Pester or PSScriptAnalyzer. I figured putting in the BTW I want to note the version of Pester required in the VSCode tasks.json example file. Would this be |
|
Awesome, thanks so much for working this out! I think people will be pretty happy to have good Pester integration in VS Code :) |
|
This will be 3.4.0. Just need to tie up the loose ends, add some documentation and I'll get it released tonight. |
Following the pattern of New-PSSessionOption / etc, people can just pass a hashtable to the -PesterOption parameter, if desired.



@rkeithhill , start with this and let me know what you think. This was just about the quickest and laziest way I could implement this, just to get the ball rolling. If the new option is specified, the first line of the stack trace gets output in between the failed test header line and the error message. We can tweak this as needed. Here's how the usage works (same as you'd expect with New-PSSessionOption / etc):