No version for distro crystal. Known supported distros are highlighted in the buttons above.
No version for distro bouncy. Known supported distros are highlighted in the buttons above.

code_coverage package from code_coverage repo

code_coverage

Package Summary

Tags No category tags.
Version 0.2.3
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/mikeferguson/code_coverage.git
VCS Type git
VCS Version master
Last Updated 2018-08-27
Dev Status DEVELOPED
Released RELEASED

Package Description

CMake configuration to run coverage

Additional Links

Maintainers

  • Michael Ferguson

Authors

  • Michael Ferguson

code_coverage

ROS package to run coverage testing

Usage

To use this with your ROS package:

  • Add code_coverage as a test depend in your package.xml
  • Update your CMakeLists.txt, in the testing section add:
if (CATKIN_ENABLE_TESTING)
  find_package(code_coverage REQUIRED)

  if(ENABLE_COVERAGE_TESTING)
    include(CodeCoverage)
    APPEND_COVERAGE_COMPILER_FLAGS()
  endif()

  # Add your tests here

  if(ENABLE_COVERAGE_TESTING)
    set(COVERAGE_EXCLUDES "*/${PROJECT_NAME}/test*" "*/${PROJECT_NAME}/other_dir_i_dont_care_about*")
    add_code_coverage(
      NAME ${PROJECT_NAME}_coverage
      DEPENDS tests
    )
  endif()
endif()

  • Now you can build and run the tests (you need a debug build to get reasonable coverage numbers):

    • if using CATKIN_MAKE:
      catkin_make -DENABLE_COVERAGE_TESTING=ON -DCMAKE_BUILD_TYPE=Debug package_name_coverage

  • if using CATKIN_TOOLS:
    catkin config --cmake-args -DENABLE_COVERAGE_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
    catkin build
    catkin build PACKAGE_NAME -v --no-deps --catkin-make-args PACKAGE_NAME_coverage 

  • The output will print where the coverage report is located
CHANGELOG

Changelog for package code_coverage

0.2.3 (2018-08-24)

  • Merge pull request #7 from jschleicher/fix/installed_package fix search path for installed package
  • fix search path for installed package Closes #6
  • Contributors: Joachim Schleicher, Michael Ferguson

0.2.2 (2018-08-21)

  • fix name of installspace file
  • Contributors: Michael Ferguson

0.2.1 (2018-08-13)

  • Merge pull request #3 from mikeferguson/catkin_build_fix Add support for catkin_tools (fixes #2)
  • add information on how to run with catkin_tools
  • minor escaping patch to work with catkin_tools
  • Contributors: Michael Ferguson

0.2.0 (2018-08-01)

  • First release
  • Contributors: Michael Ferguson

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

No dependencies on ROS packages.

System Dependencies

Name
lcov

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged code_coverage at answers.ros.org

code_coverage package from code_coverage repo

code_coverage

Package Summary

Tags No category tags.
Version 0.2.3
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/mikeferguson/code_coverage.git
VCS Type git
VCS Version master
Last Updated 2018-08-27
Dev Status DEVELOPED
Released RELEASED

Package Description

CMake configuration to run coverage

Additional Links

Maintainers

  • Michael Ferguson

Authors

  • Michael Ferguson

code_coverage

ROS package to run coverage testing

Usage

To use this with your ROS package:

  • Add code_coverage as a test depend in your package.xml
  • Update your CMakeLists.txt, in the testing section add:
if (CATKIN_ENABLE_TESTING)
  find_package(code_coverage REQUIRED)

  if(ENABLE_COVERAGE_TESTING)
    include(CodeCoverage)
    APPEND_COVERAGE_COMPILER_FLAGS()
  endif()

  # Add your tests here

  if(ENABLE_COVERAGE_TESTING)
    set(COVERAGE_EXCLUDES "*/${PROJECT_NAME}/test*" "*/${PROJECT_NAME}/other_dir_i_dont_care_about*")
    add_code_coverage(
      NAME ${PROJECT_NAME}_coverage
      DEPENDS tests
    )
  endif()
endif()

  • Now you can build and run the tests (you need a debug build to get reasonable coverage numbers):

    • if using CATKIN_MAKE:
      catkin_make -DENABLE_COVERAGE_TESTING=ON -DCMAKE_BUILD_TYPE=Debug package_name_coverage

  • if using CATKIN_TOOLS:
    catkin config --cmake-args -DENABLE_COVERAGE_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
    catkin build
    catkin build PACKAGE_NAME -v --no-deps --catkin-make-args PACKAGE_NAME_coverage 

  • The output will print where the coverage report is located
CHANGELOG

Changelog for package code_coverage

0.2.3 (2018-08-24)

  • Merge pull request #7 from jschleicher/fix/installed_package fix search path for installed package
  • fix search path for installed package Closes #6
  • Contributors: Joachim Schleicher, Michael Ferguson

0.2.2 (2018-08-21)

  • fix name of installspace file
  • Contributors: Michael Ferguson

0.2.1 (2018-08-13)

  • Merge pull request #3 from mikeferguson/catkin_build_fix Add support for catkin_tools (fixes #2)
  • add information on how to run with catkin_tools
  • minor escaping patch to work with catkin_tools
  • Contributors: Michael Ferguson

0.2.0 (2018-08-01)

  • First release
  • Contributors: Michael Ferguson

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

No dependencies on ROS packages.

System Dependencies

Name
lcov

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged code_coverage at answers.ros.org

code_coverage package from code_coverage repo

code_coverage

Package Summary

Tags No category tags.
Version 0.2.3
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/mikeferguson/code_coverage.git
VCS Type git
VCS Version master
Last Updated 2018-08-27
Dev Status DEVELOPED
Released RELEASED

Package Description

CMake configuration to run coverage

Additional Links

Maintainers

  • Michael Ferguson

Authors

  • Michael Ferguson

code_coverage

ROS package to run coverage testing

Usage

To use this with your ROS package:

  • Add code_coverage as a test depend in your package.xml
  • Update your CMakeLists.txt, in the testing section add:
if (CATKIN_ENABLE_TESTING)
  find_package(code_coverage REQUIRED)

  if(ENABLE_COVERAGE_TESTING)
    include(CodeCoverage)
    APPEND_COVERAGE_COMPILER_FLAGS()
  endif()

  # Add your tests here

  if(ENABLE_COVERAGE_TESTING)
    set(COVERAGE_EXCLUDES "*/${PROJECT_NAME}/test*" "*/${PROJECT_NAME}/other_dir_i_dont_care_about*")
    add_code_coverage(
      NAME ${PROJECT_NAME}_coverage
      DEPENDS tests
    )
  endif()
endif()

  • Now you can build and run the tests (you need a debug build to get reasonable coverage numbers):

    • if using CATKIN_MAKE:
      catkin_make -DENABLE_COVERAGE_TESTING=ON -DCMAKE_BUILD_TYPE=Debug package_name_coverage

  • if using CATKIN_TOOLS:
    catkin config --cmake-args -DENABLE_COVERAGE_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
    catkin build
    catkin build PACKAGE_NAME -v --no-deps --catkin-make-args PACKAGE_NAME_coverage 

  • The output will print where the coverage report is located
CHANGELOG

Changelog for package code_coverage

0.2.3 (2018-08-24)

  • Merge pull request #7 from jschleicher/fix/installed_package fix search path for installed package
  • fix search path for installed package Closes #6
  • Contributors: Joachim Schleicher, Michael Ferguson

0.2.2 (2018-08-21)

  • fix name of installspace file
  • Contributors: Michael Ferguson

0.2.1 (2018-08-13)

  • Merge pull request #3 from mikeferguson/catkin_build_fix Add support for catkin_tools (fixes #2)
  • add information on how to run with catkin_tools
  • minor escaping patch to work with catkin_tools
  • Contributors: Michael Ferguson

0.2.0 (2018-08-01)

  • First release
  • Contributors: Michael Ferguson

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

No dependencies on ROS packages.

System Dependencies

Name
lcov

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged code_coverage at answers.ros.org

No version for distro indigo. Known supported distros are highlighted in the buttons above.
No version for distro ardent. Known supported distros are highlighted in the buttons above.
No version for distro jade. Known supported distros are highlighted in the buttons above.
No version for distro hydro. Known supported distros are highlighted in the buttons above.