executionWrapper
doesn't support having ${cmd}
in path
#441
Labels
question
Further information is requested
executionWrapper
doesn't support having ${cmd}
in path
#441
Checklist
I understand that you have privacy concerns and I expect you to understand that this extension is developed for free.
Thanks.
Describe the bug
This is half a bug half feature request.
My usecase is this: I have an API that I test with GTest and multiple drivers that implement the api. The tests run against the API and not the drivers directly. I have gtest command line arguments but also I have
--driver
that gets piped into the initialization of the api.The gtest runner in Visual Studio can do this with
Additional test execution parameters
.Looking at the documentation, it seemed that
executionWrapper
could do this if I configured it like so:There are two issues as far as I can tell:
I'm not very familiar with javascript but I tried debugging it and I found the following:
${cmd}
in theargs
. In this case it won't find it so it errors out. This is easily fixed by also checkingpath
.path/to/${cmd} --help
but it doesn't expand${cmd}
to the real value. I guess this can be fixed with a getter for the command.Alternatives and why I can't use them
.bat
/.sh
file to inject the driver and then call the test. I tried this and it would work for making*Tests.bat
files show up in the test explorer but when running I would get errors about command line length. Using aTests.ps1
file would not show up in the explorer.To Reproduce
executionWrapper
intestMate.cpp.test.advancedExecutables
. Thecmd
must be inpath
and not inargs
. The most simple case would be thisDesktop
Logs
I did my best but setting
testMate.cpp.log.logfile
to/tmp/testMate.log
and reloading the tests in test explorer did not create any files andtestMate.cpp.log.logpanel
does not add anything related to tests in the OUTPUT tab drop down menu.The text was updated successfully, but these errors were encountered: