Skip to content

thvdveld/lcov-summary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lcov-summary

lcov-summary is a tool that summarizes the content of an lcov file. It is also possible to show the diff of two lcov files.

Installation

Use cargo to install lcov-summary:

cargo install lcov-summary

Usage

Using the following command, the summary of the lcov file is printed to stdout.

lcov-summary lcov.info

The output might look like:

                        Lines                  Functions
              │  Hit    Total  H/T     │  Hit   Total  H/T
 ./lcov.info  │  23662  30141  78.50%  │  2675   3630  73.69%

Using the --full flag, the coverage is shown for every file:

lcov-summary --full lcov.info

If two files are passed to lcov-summary, then the diff of those files is printed to stdout.

lcov-summary lcov-master.info lcov-feature.info

The output might look like:

                               Lines                    Functions
                   │  Hit     Total   H/T      │  Hit    Total  H/T
 lcov-master.info  │   22394   28322   79.07%  │   2524   3401   74.21%
        lcov.info  │   23662   30141   78.50%  │   2675   3630   73.69%
             diff  │  + 1268  + 1819  - 0.56%  │  + 151  + 229  - 0.52%

The following command is not yet implemented, but it would show the diff, only for the files that actually have different coverage:

lcov-summary --full lcov-master.info lcov-feature.info

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages