Crates.io | lcov-summary |
lib.rs | lcov-summary |
version | 0.2.1 |
source | src |
created_at | 2023-04-20 15:04:14.850163 |
updated_at | 2023-04-21 14:34:19.087333 |
description | Summarize lcov files in the terminal. |
homepage | |
repository | https://github.com/thvdveld/lcov-summary |
max_upload_size | |
id | 844534 |
size | 38,810 |
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.
Use cargo
to install lcov-summary:
cargo install lcov-summary
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