#覆盖率 #表格 #报告 #lcov #html #转换

构建 覆盖率准备

将覆盖率数据转换为 HTML 报告、LCOV 文件或终端表格

4 个版本 (2 个重大更新)

0.3.1 2022年10月28日
0.3.0 2022年8月19日
0.2.0 2022年8月19日
0.1.0 2022年8月19日

#402构建实用工具

Download history 51/week @ 2024-04-03 16/week @ 2024-04-10 34/week @ 2024-04-17 29/week @ 2024-04-24 37/week @ 2024-05-01 12/week @ 2024-05-08 60/week @ 2024-05-15 61/week @ 2024-05-22 71/week @ 2024-05-29 41/week @ 2024-06-05 52/week @ 2024-06-12 96/week @ 2024-06-19 63/week @ 2024-06-26 35/week @ 2024-07-03 15/week @ 2024-07-10 27/week @ 2024-07-17

每月下载 149

MIT 许可证

13KB
233 行(不含注释)

覆盖率准备

CI Crates.io

将覆盖率数据转换为 HTML 报告、LCOV 文件或终端表格。

覆盖率-准备--帮助:

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

依赖

~3–11MB
~105K SLoC