#coverage #table #lcov #reports #html #convert

build coverage-prepare

Convert coverage data to HTML reports, LCOV files or terminal tables

4 releases (2 breaking)

0.3.1 Oct 28, 2022
0.3.0 Aug 19, 2022
0.2.0 Aug 19, 2022
0.1.0 Aug 19, 2022

#505 in Build Utils

Download history 60/week @ 2024-07-25 55/week @ 2024-08-01 41/week @ 2024-08-08 18/week @ 2024-08-15 12/week @ 2024-08-22 21/week @ 2024-08-29 101/week @ 2024-09-05 74/week @ 2024-09-12 22/week @ 2024-09-19 25/week @ 2024-09-26 45/week @ 2024-10-03 53/week @ 2024-10-10 59/week @ 2024-10-17 25/week @ 2024-10-24 47/week @ 2024-10-31 23/week @ 2024-11-07

160 downloads per month

MIT license

13KB
233 lines

Coverage Prepare

CI Crates.io

Convert coverage data to HTML reports, LCOV files or terminal tables.

coverage-prepare --help:

Convert "profraw" coverage data to:
* HTML reports
* terminal table reports
* LCOV files (for upload to codecov etc.)

See https://github.com/samuelcolvin/coverage-prepare/ for more information.

USAGE:
    coverage-prepare [OPTIONS] <OUTPUT_FORMAT> [BINARIES]...

ARGS:
    <OUTPUT_FORMAT>
            output format
            
            [possible values: html, report, lcov]

    <BINARIES>...
            binary files to build coverage from

OPTIONS:
    -h, --help
            Print help information

        --ignore-filename-regex <IGNORE_FILENAME_REGEX>
            maps to the `--ignore-filename-regex` argument to `llvm-cov`, `\.cargo/registry` &
            `library/std` are always ignored, repeat to ignore multiple filenames

        --no-delete
            whether to not delete the processed `.profraw` files and the generated `.profdata` file
            after generating the coverage reports, by default these files are deleted

    -o, --output-path <OUTPUT_PATH>
            Output path, defaults to `rust_coverage.lcov` for lcov output, and `htmlcov/rust` for
            html output

    -V, --version
            Print version information

Dependencies

~3–10MB
~104K SLoC