Skip to content

RC option 'lcov_branch_coverage' is deprecated warning from hard-coded argument #40

@jasgaa

Description

@jasgaa

Ubuntu 24.04
ROS2 Jazzy
colcon-lcov-result 0.5.3

colcon lcov-result --initial --verbose command output:

Starting >>> my_package
Summary coverage rate:[my_package - 7.8s]
lines......: 0.0% (0 of 7939 lines)
functions..: 0.0% (0 of 13675 functions)
branches...: no data found
--- stderr: my_package

geninfo: WARNING: RC option 'lcov_branch_coverage' is deprecated. Consider using 'branch_coverage. instead. (Backward-compatible support will be removed in the future
---
Finished <<< my_package [7.94s]

This seems to happen due to hard-coded deprecated argument in colcon-lcov-result/colcon_lcov_result/task/lcov.py

        baseline_file = os.path.join(pkg_build_folder, 'coverage_base.info')
        if args.initial:
            output_file = baseline_file
            additional_args = ['--initial',
                               '--rc', 'lcov_branch_coverage=0']

Also, the same deprecated arguments can be found from lcovrc

# Specify if function coverage data should be collected and
# processed.
lcov_function_coverage = 1

# Specify if branch coverage data should be collected and
# processed.
lcov_branch_coverage = 1

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions