Skip to content

Commit fb57e28

Browse files
committed
provide solution to isolate module 3 tests
1 parent fa9fd8f commit fb57e28

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

modules/module_3/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<test_depend>ament_lint_auto</test_depend>
2020
<test_depend>ament_cmake_clang_format</test_depend>
2121
<test_depend>ament_cmake_cpplint</test_depend>
22-
<test_depend>ament_cmake_gtest</test_depend>
22+
<test_depend>ament_cmake_ros</test_depend>
2323

2424
<export>
2525
<build_type>ament_cmake</build_type>

modules/module_3/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
find_package(ament_cmake_gtest REQUIRED)
15+
find_package(ament_cmake_ros REQUIRED)
1616

17-
ament_add_gtest(test_laser_detector_node
17+
ament_add_ros_isolated_gtest(test_laser_detector_node
1818
test_laser_detector_node.cpp
1919
)
2020
target_link_libraries(test_laser_detector_node

0 commit comments

Comments
 (0)