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

configure PATH environment var for running tests #33

Closed
alanlivio opened this issue Jun 15, 2021 · 3 comments
Closed

configure PATH environment var for running tests #33

alanlivio opened this issue Jun 15, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@alanlivio
Copy link

I have a cmake windows build which use msys2 libraries in C:\tools\msys64\mingw64\bin.
The test-explorer fail to load such libraries when running tests.
When I extends system PATH, the test-explorer works.

I would like to avoid extends the system PATH.
Is it possible a configure PATH when running tests?

@fredericbonnet fredericbonnet added the enhancement New feature or request label Jul 23, 2021
@bkarasm
Copy link

bkarasm commented Jul 27, 2021

I have similar issue. I'm capable of defining environment variables for debugging (using cmakeExplorer.debugConfig) but can't find a way to do the same when running tests by pressing the run button in the Test Explorer.

@alanlivio
Copy link
Author

Hi @bkarasm. It exactly the same for. I was able to use cmakeExplorer.debugConfig for debugging. But I was not able to configure PATH for Test Explorer.

@fredericbonnet
Copy link
Owner

The new version 0.15.0 adds cmakeExplorer.extraCtestEnvVars to set extra environment variables when running CTest.

Values support variable substitutions, so if you want to extend the system path you can set the PATH variable to e.g. ${env:PATH};C:\tools\msys64\mingw64\bin

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

3 participants