You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not related to remote-vscode or I checked the following issue
Describe the bug
On Windows my test-executables need <TARGETDIR>/bin in the PATH to find required DLLs. I tried setting this up using environment variables but setting PATH with environment variables always fails for me. When the PATH is not set, then vscode-catch2-test-adapter can not find the tests, because the executables will not start.
Without variables, the detection works fine, see example below. Could you please help?
To Reproduce
Set environment variable BDASOFTTEMP_OSPATH="C:/data"
The following setting (with a hardcoded path) works well:
{
"testMate.cpp.debug.breakOnFailure": false,
"testMate.cpp.test.advancedExecutables": [
{
"name": "${filename}",
"description": "(Test)",
"pattern": "${os_env:BDASOFTTEMP_OSPATH}/Debug/BDABaseFunctions/*Test*",
"env": {
// The PATH is set with hardcoded "C:/data", this works:
"PATH": "${os_env:PATH}${osPathEnvSep}C:/data/Debug/bin"
}
}
]
}
However, this setting with using ${os_env:BDASOFTTEMP_OSPATH} in PATH does not work. Note that the same variable works when its used in pattern, also in the example above. So the variable should be fine.
Catch2 / Google Test / DOCTest Version: Google Test 1.8.1
OS Type and Version: Windows 10 x64
Using remote-ssh/docker/wsl?: No
Log (optional but recommended)
I added the setting "testMate.cpp.log.logfile": "C:/data/testmate.log", to settings.json. But it should be enough to reload the tests to reproduce the problem with PATH. After reloading the tests a few times and closing and opening vscode, there is still no log. Maybe I'm doing something wrong?
The text was updated successfully, but these errors were encountered:
Thanks so much for this awesome software!
Checklist
Describe the bug
On Windows my test-executables need
<TARGETDIR>/bin
in thePATH
to find required DLLs. I tried setting this up using environment variables but settingPATH
with environment variables always fails for me. When thePATH
is not set, then vscode-catch2-test-adapter can not find the tests, because the executables will not start.Without variables, the detection works fine, see example below. Could you please help?
To Reproduce
Set environment variable
BDASOFTTEMP_OSPATH="C:/data"
The following setting (with a hardcoded path) works well:
However, this setting with using
${os_env:BDASOFTTEMP_OSPATH}
inPATH
does not work. Note that the same variable works when its used inpattern
, also in the example above. So the variable should be fine.Desktop
Log (optional but recommended)
I added the setting
"testMate.cpp.log.logfile": "C:/data/testmate.log",
tosettings.json
. But it should be enough to reload the tests to reproduce the problem withPATH
. After reloading the tests a few times and closing and opening vscode, there is still no log. Maybe I'm doing something wrong?The text was updated successfully, but these errors were encountered: