The repository is to illustrate an issue in colcon lcov result.
- Make a workspace to play with this code.
cd /tmp
mkdir -p example_ws/src
- Clone this repo to the src directory
cd example_ws/src
git clone https://github.com/crdelsey/lcovissue.git
- Source your ROS 2 environment and go to the root of the workspace
source <YOUR ROS DIR>/install/setup.bash
cd /tmp/example_ws
- Generate colcon-lcov-result data
./src/lcovissue/build.bash colconlcov
firefox lcov/index.html
- 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.