[ros-users] [Discourse.ros.org] [ROS Projects] Catkin: run specific unit test

mch ros.discourse at gmail.com
Mon Sep 18 19:14:02 UTC 2017



I know there are specific test commands
`catkin_make run_tests`  to run all tests
and
`catkin_make run_tests_<projectname>_gtest_<testname>` to run specific test declared by catkin_add_gtest(..)

One test file can have multiple tests though.
Example:

    TEST(testsuit1, test1) {
    ..
    }

    TEST(testsuit1, test2) {
    ..
    }

    TEST(testsuit2, test3) {
    ..
    }

    int main(int argc, char **argv) {
        testing::InitGoogleTest(&argc, argv);
        return RUN_ALL_TESTS();
    }


Is that possible to run only testsuit1 or only test3 from my example?





---
[Visit Topic](https://discourse.ros.org/t/catkin-run-specific-unit-test/2679/1) or reply to this email to respond.




More information about the ros-users mailing list