You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!, really love the extension, thanks for your effort.
I have found a bug writing Google Tests suites. My tests require roscore to be started as they communicate with the master. I have noticed, that these tests are not discovered/shown in the panel unless roscore is started.
There is (by default) not debugging info that tells the (new and unexperienced user) why tests executables exists, but are not shown in the test explorer.
Checklist
The issue is about this extension and NOT about a fork.
It is not related to remote-vscode or I checked the following issue
Imagine yourself into my position and think how hard to debug the issue without insufficient information.
I understand that you have privacy concerns and I expect you to understand that this extension is developed for free.
Thanks.
Describe the bug
Roscore invocation hinders the extension from discovering tests without notifying the user why tests aren't found.
For me as new cpp testing user, there is no output window for testmate which tells me what is going on, why tests are not discovered!
To Reproduce
Here is a minimal example:
test_roscore.cpp:
// test imports
#include <gtest/gtest.h>
// standard imports
#include <thread>
#include <string>
// third party imports
#include "ros/ros.h"
int main(int argc, char** argv) {
// echo argc and argv!
ros::init(argc, argv, "test_roscore");
std::this_thread::sleep_for(std::chrono::milliseconds(500));
ros::NodeHandle nh;
testing::InitGoogleTest(&argc, argv);
bool success = RUN_ALL_TESTS();
ros::shutdown();
return success;
}
Notice that ros::init is called before testing::InitGoogleTests. This implies that that roscore must be started before any of the test suite functions can be used. I have not looked at this repo's source code (sorry no time, master thesis) but I imagine that google tests suite functions are used to discover the tests.
Log file but names changed. Sorry but I'm very limited in what i can publish and also short on time. Basically what happen is the discovery times out because it keeps waiting for roscore
Hi!, really love the extension, thanks for your effort.
I have found a bug writing Google Tests suites. My tests require roscore to be started as they communicate with the master. I have noticed, that these tests are not discovered/shown in the panel unless roscore is started.
There is (by default) not debugging info that tells the (new and unexperienced user) why tests executables exists, but are not shown in the test explorer.
Checklist
I understand that you have privacy concerns and I expect you to understand that this extension is developed for free.
Thanks.
Describe the bug
Roscore invocation hinders the extension from discovering tests without notifying the user why tests aren't found.
For me as new cpp testing user, there is no output window for testmate which tells me what is going on, why tests are not discovered!
To Reproduce
Here is a minimal example:
test_roscore.cpp:
Notice that
ros::init
is called beforetesting::InitGoogleTests
. This implies that that roscore must be started before any of the test suite functions can be used. I have not looked at this repo's source code (sorry no time, master thesis) but I imagine that google tests suite functions are used to discover the tests.In the CMakeLists.txt:
Desktop
not important
Log (optional but recommended)
Log file but names changed. Sorry but I'm very limited in what i can publish and also short on time. Basically what happen is the discovery times out because it keeps waiting for roscore
Cheers!
Steve
The text was updated successfully, but these errors were encountered: