Skip to content

running ctest using test explore with env vars from test presets #4313

@mikirothman

Description

@mikirothman

Brief Issue Summary

hello
our test presets have bunch of environment variables (composed by conan due to our dependency graph) which we need in order to launch the tests,
we were expecting to see those vars along the ctest command.
but the command ctest invokes is:

ctest.exe -T test --output-on-failure --build-config Debug -R ^MyProj\.MyTest$

Due to the missing env vars the tests fail when running from the test explorer.
Running ctest —preset ${my-preset} from the terminal pass the env vars to my test executables

CMake Tools Diagnostics

Debug Log

Additional Information

No response

Metadata

Metadata

Type

No type

Projects

Status

Pending Prioritization

Relationships

None yet

Development

No branches or pull requests

Issue actions