Skip to content
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

Please add in an option to toggle loading on non-Windows profiles #263

Open
thisisnotfez opened this issue Jun 20, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@thisisnotfez
Copy link

Firstly, amazing extension. Thank you for it.

Secondly, yes. Title. I have been legitimately spinning my wheels for over a year trying to suppress Powershell loading in my Linux OS until I had that critical AHA moment, just mere minutes ago.

If Pester is enabled, Powershell will load, ignoring all settings defined for it to not load in Linux or OSX envs.

Please add in a toggle, setting, black magic hoodoo, something, to ensure that Pester doesn't forcibly load Powershell in a non-Windows environment. Or by chosen profile, at all.

Thank you.

@JustinGrote
Copy link
Collaborator

The pester extension requires the PowerShell extension (and the PowerShell Editor Services terminal by extension) to do anything because it has to detect where your pwsh exists to load the same version for the pester runner. That said, if it doesn't find any .tests.ps1 files (or whatever convention you specify for your test files in settings), then it shouldnt start it I don't think. I will test this theory.

@JustinGrote JustinGrote added the enhancement New feature or request label Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants