-
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
Getting test runner working with Linux and CMake #59
Comments
Just to add the below: add_custom_command(TARGET ${TEST_APP_NAME} COMMAND ./${TEST_APP_NAME} POST_BUILD) seems to delete the "exe" after it runs. If I disable that step for now then I get an "exe" called "esp32_withtestsApp_tests" in "build\cpputests_tests\tests\cpputest" However tried various combinations for Test Executable: "${workspaceFolder}\build\cpputests_tests\tests\cpputest\esp32_withtestsApp_tests" without any luck )still get "ERROR LOADING TESTS" |
Hey, I removed the check for ".exe" under windows in the last version. Can you see if you get it to run? |
Unfortunately I can't see the runner at all now - not sure if related to : #65 Basically what I used to see was (v1.3.4): For each later version I see (basically it looks like missing): In your logs I see: [2024-10-07 20:38:09.967] [INFO] Test Explorer found |
Okay thanks. I have a hunch that the backslashes are the culprit here. Can you replace your test executable path with: |
Hi,
I am trying to get this test runner working on Linux (WSL to be precise) and we use CMake.
To do the build I do:
cd {projectpath}\build\cpputests_tests
cmake ../../
make
and that runs the build and tests.
I can't see any .exe file (as on linux), and don't even know where the runner would go.
Test source code is in:
{projectpath}\tests\cpputest
CMakeLists.txt looks like:
The text was updated successfully, but these errors were encountered: