pester / vscode-adapter

Run PowerShell Pester Tests with Visual Studio Code
MIT License
58 stars 14 forks source link

TestCases should be able to show their error line at where the test case name is defined #126

Open JustinGrote opened 2 years ago

JustinGrote commented 2 years ago

We should be able to do at least a lazy attempt to look for "My Test " and go thru the AST parser looking for a hashtable with the same name property. If for whatever reason this fails we'd just fall back to the top test name.

This would be static analysis for a string only, any variables used in this location would not work. image