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

How to activate the adapter on windows? #3

Closed HuRui-1026 closed 4 years ago

HuRui-1026 commented 4 years ago

Exciting to find this extension! But how to use it on windows? There is not a command to call the test.

bneumann commented 4 years ago

Hi, thanks for the feedback. It should be the same under windows, set the cpputestExplorer.testExecutable property in your settings file to your built executable. You need the test explorer extension prior to use this here test adapter.

bneumann commented 4 years ago

Oh, I am sorry. Just browsed through the code and saw that I am actually using Linux tools to iterate over the executable folder. That is a good find. Maybe I can have a look into it next week. No promises though.

bneumann commented 4 years ago

Sorry for the delay. I found the bug it was kinda stupid. If you don't set the CWD I prepend a "/" which is not working under windows (also under linux but no one cared ;) ) Going to fix it

bneumann commented 4 years ago

PR #5 should fix the issue. Will do a release on azure in the next days

bneumann commented 4 years ago

Version 0.1.15 is out now