Extension fails to capture some of the executables
See original GitHub issueChecklist
- The issue is about this extension and NOT about a fork.
- Check the known issues list.
- The latest version of the extension was used.
Describe the bug
I am trying to use this extension with GTest.
The extension seems to fail to capture most of my unittest executables, although the pattern seems to be ok. The log file shows it going through all of the right executables but it is only able to capture a couple. Here is the error message I get for the ones not captured:
[2020-07-23 12:13:02.828] [DEBUG] Not a test executable: c:\local\hulloncos\sources\unittest\cos_unittest\cos_unittest.exe reason: [Error: Not a supported test executable: c:\local\hulloncos\sources\unittest\cos_unittest\cos_unittest.exe
I can confirm the executable works fine and running cos_unittest.exe --gtest_list_tests
shows a list of all tests. I can’t really see the difference between this executable and one that the extension is able to capture. I wonder what is the procedure to capture a “supported test executable”? Maybe that could help me find what I need to do.
To Reproduce
Nothing special, just hitting the reload button in the test tab. Here are my settings:
"testMate.cpp.test.advancedExecutables": [
{
"pattern": "{sources,unittest}/**/*{unittest}*",
"cwd": "${absDirpath}",
"env": {
"PATH" : "${env:PATH};${workspaceFolder}/nupashull/windowsNT/ncgbin",
"ncgbin" : "${workspaceFolder}/nupashull/windowsNT/ncgbin",
"ncgbin64" : "${workspaceFolder}/nupashull/windowsNT/ncgbin64",
}
}
]
All unittest executables have the suffix _unittest and are inside sources/unittest (yes I realize that’s a silly place to put executables, not a decision that’s up to me 😛)
Desktop
- Extension Version: 3.2.10
- VS Code Version: 1.47.2
- Catch2 / Google Test / DOCTest Version: 1.10.0 (gtest)
- OS Type and Version: Windows 10 Pro
- Using remote-ssh/docker/wsl?: No
Log (optional but recommended)
The relevant log message I can see is this one:
[2020-07-23 12:13:02.828] [DEBUG] Not a test executable: c:\local\hulloncos\sources\unittest\cos_unittest\cos_unittest.exe reason: [Error: Not a supported test executable: c:\local\hulloncos\sources\unittest\cos_unittest\cos_unittest.exe
Let me know if more is needed though.
Issue Analytics
- State:
- Created 3 years ago
- Comments:29 (14 by maintainers)
Top GitHub Comments
@Sol1du2 Thanks for the reply! I found out that the “C++ TestMate Legacy” extension works just fine for me.
@daniel-kun this issue turned out to be an issue with my setup not the plugin