TylerLeonhardt / vscode-pester-test-adapter

MIT License
33 stars 13 forks source link

Allow configurable pester verbosity (and ideally inherit from Powershell extension) #34

Open JustinGrote opened 3 years ago

JustinGrote commented 3 years ago

When I click the run for the tests, I prefer detailed to normal output. There should be settings to mirror these settings and ideally inherit these settings if not explicity set otherwise.

image

TylerLeonhardt commented 3 years ago

So luckily the Debug Output Verbosity is used already because vscode-pester-test-adapter uses the PowerShell extension for debugging.

The next change would be to hook up powershell.pester.outputVerbosity to vscode-pester-test-adapter. Pretty simple to do, I think:

const value = vscode.workspace.getConfiguration('powershell').get<string>('pester.outputVerbosity');

and then pass that in to the script:

https://github.com/TylerLeonhardt/vscode-pester-test-adapter/blob/dfd4a1fcde1478d35c98f0c7f267f531961927e4/src/powershellScripts.ts#L110

Interested in touching a little typescript? :)

JustinGrote commented 3 years ago

@TylerLeonhardt if it annoys me enough, maybe :)