Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Use standard CMake macros for adding gtest/gmock tests #37

Merged
merged 2 commits into from
Jun 27, 2019

Conversation

mm318
Copy link
Contributor

@mm318 mm318 commented Jun 25, 2019

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

mm318 added 2 commits June 24, 2019 15:05
Signed-off-by: Miaofei <miaofei@amazon.com>
…ames

Signed-off-by: Miaofei <miaofei@amazon.com>
@codecov
Copy link

codecov bot commented Jun 25, 2019

Codecov Report

Merging #37 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #37   +/-   ##
=======================================
  Coverage   96.08%   96.08%           
=======================================
  Files           4        4           
  Lines         434      434           
=======================================
  Hits          417      417           
  Misses         17       17
Flag Coverage Δ
#ROS_1 96.08% <100%> (ø) ⬆️
#kinetic 96% <100%> (ø) ⬆️
#melodic 96.08% <100%> (ø) ⬆️
Impacted Files Coverage Δ
...udwatch_logger/test/log_node_param_helper_test.cpp 98.17% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e7395f...5d67cfe. Read the comment docs.

target_link_libraries(test_log_node_param_helper ${PROJECT_NAME}_lib
${GTEST_LIBRARIES} libgmock ${catkin_LIBRARIES})
add_test(NAME test_log_node_param_helper COMMAND test_log_node_param_helper --gtest_output=xml:test_results/)
add_rostest_gtest(test_log_node
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is roscore necessary for these tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made this change so that the way we're adding Cloud Extensions tests are consistent across all packages/repositories.

@mm318 mm318 merged commit 125b540 into master Jun 27, 2019
@ryanewel ryanewel deleted the test-dependencies branch October 31, 2019 16:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants