colcon / colcon-lcov-result

A colcon extension for collecting lcov output
http://colcon.readthedocs.io
Apache License 2.0
7 stars 5 forks source link

colcon lcov-result doesn't print summary if no filters #8

Open jpsamper2009 opened 6 years ago

jpsamper2009 commented 6 years ago
$ colcon lcov-result --packages-select my_cool_pkg
Starting >>> my_cool_pkg
Finished <<< my_cool_pkg [0.79s]          

Summary: 1 package finished [0.96s]

Calculating total coverage... 

Generating HTML: Done
$ colcon lcov-result --packages-select my_cool_pkg --filter foo
Starting >>> my_cool_pkg
Finished <<< my_cool_pkg [0.82s]          

Summary: 1 package finished [0.99s]

Calculating total coverage... 

Applying filters... 
Reading tracefile /home/jp.samper/my_cool_ws/lcov/total_coverage.info
Summary coverage rate:
  lines......: 78.8% (26 of 33 lines)
  functions..: 95.2% (20 of 21 functions)
  branches...: 40.3% (25 of 62 branches)

Generating HTML: Done