/lcovissue

Primary LanguageShell

Overview

The repository is to illustrate an issue in colcon lcov result.

colcon/colcon-lcov-result#9

Instructions

  1. Make a workspace to play with this code.
cd /tmp
mkdir -p example_ws/src
  1. Clone this repo to the src directory
cd example_ws/src
git clone https://github.com/crdelsey/lcovissue.git
  1. Source your ROS 2 environment and go to the root of the workspace
source <YOUR ROS DIR>/install/setup.bash
cd /tmp/example_ws
  1. Generate colcon-lcov-result data
./src/lcovissue/build.bash colconlcov
firefox lcov/index.html
  1. Generate direct lcov data
./src/lcovissue/build.bash baselcov
firefox baselcov/html/index.html

Notice there is one extra line in the baselcov data showing package_a under the install directory.