-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Configuration setting for Pester path #108
Comments
I can't say I will make this a priority since you can do it as part of your discovery or test run phase, other than if you want to use a custom version of pester not already on your psmodulepath. I'll put it on the to-do stack though :) |
I’m happy you put it on the back log. Thank you. 😊 Wish I could help but don’t know where to start. 😊 Some more information, that you probably already know. The problem is that the Pester Test Adapter adapter do not work unless it has Pester in the PSModulePath, if Pester is not available it will not run discovery since it does this (and of course invokes Pester) prior to discovery: vscode-adapter/Scripts/PesterInterface.ps1 Line 472 in 0bae405
with a configuration option we could import the Pester module from a custom relative path so that a user does not need to install the Pester module in a PSModulePath. This will help us since our pipeline is using PSDepend that downloads the (Pester module) version specified in a configuration file to a relative path to the local repository root. If this configuration option was a reality we would not need to first install Pester in PSModulePath. We could just resolve dependencies prior to starting VS Code. |
Could we add a configuration setting
PesterModulePath
so it can be specified relative to the project path where the Pester module is located, and so Pester Test Adapter does not assume it is in$env:PSModulePath
?The text was updated successfully, but these errors were encountered: