bneumann / CppUTest-Test-Adapter

A test adapter for Visual Studio Code for the C/C++ Unit Test framework CppUTest.
MIT License
16 stars 7 forks source link

Query test location from test executable #32

Closed jgonzalezdr closed 2 years ago

jgonzalezdr commented 2 years ago

This PR implements getting the test location info by querying the test executable using the option "-ll" as commented in #24, which should work seamlessly in all platforms.

Since this CppUTest option is fairly new and has not been published yet in any CppUTest official release, I've made it coexist with the current method of fetching debug info from the executable using external tools.

In the fetch mode default setting (auto) the extension will try to use the new option to get test info, falling back to the standard option "-ln" if it is not supported by the user's CppUTest version.

Note: This PR is build on top of #29, so you can if you want just merge this PR and close the other, or merge both.

bneumann commented 2 years ago

Closes #24