-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to setup on VSCode #26
Comments
Hi, After you set the test executable path the plugin will automatically detect the tests inside it and show the in the test explorer |
I'm not clear what is meant by "test executable". What kind of file would that be? (.exe or something else?). Is this a file CppUTest provides? I'm on a Mac, just trying to run the tests from James Grenning's book. I can run them from the command line, but see no tests in VS Code. |
Well if you compile your test code you should get an executable (i guess the one you are running?). That is your test executable. If you set it in the paths of this extension it should be used to identify your tests. |
OK, thanks, I found the executable, and have settings.json correctly configured now. Still no tests showing up in the Test Explorer. Any ideas about what else might be wrong? |
You are completely right, I just tried it again (after years to be honest) and it didn't work. I will look into it |
Okay I found the culprit and will release a new version today evening. Funny enough I think not a lot people are using this extension because you could actually add multiple files likes so |
Thank you very much for finding the problem! Looking forward to the fix in the new version. |
No problem, i am a bit short on time recently (like in the past 2 years I guess). So it always takes some time to get things done. I just uploaded the latest version 1.3.1. Let me know if it works now |
OK, that is definitely an improvement. I'm seeing things in the test explorer for the first time. However, I'm now getting an ERROR_LOADING_TESTS Here is what I have in settings.json: |
That double quote character at the end looks suspicious. Would that still be something going on with the parser? |
That is odd, this text is loaded from the executable name itself. it worked with my local test executable file. Is the log showing anything helpful? I will check the commits if i fat fingered something in the code :) |
Any update on this? And sorry, I just noticed you aksed if the log is showing anything. Where would I find that? |
Hi, so the extension tries to get the list of tests from your executable. This is done by calling either |
4.0 |
Weird, that is the same as mine. Can you add the logs? This can be done by setting the |
OK, once I set logpanel to true, where would I find the log file? |
Sorry, yeah you will find it as described here: |
Hi,
I installed CppUTest on vscode & also installed dependency Test UI Explorer
I do not understand how to get started.
I have a .cpp file on which i need to run unit tests,
Kindly guide.
The text was updated successfully, but these errors were encountered: