← 返回命令列表

Linux command

octocov 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run octocov

octocov

Generate a coverage badge

octocov badge

Compare two coverage reports

octocov diff [report_a] [report_b]

View file-level coverage

octocov view [file]

List all files

octocov ls-files

Generate a default configuration file

octocov init

说明

octocov is a toolkit for collecting code metrics including code coverage, code-to-test ratio, and test execution time. It works both as a local CLI tool and as a CI tool integrated with GitHub Actions. Features include support for multiple coverage report formats (Go, Ruby, Python, Clover, LCOV, and more), badge generation, pull request commenting, and report storage in GitHub, S3, or BigQuery. It can aggregate reports from multiple repositories for centralized monitoring. Configuration is defined in `.octocov.yml`.

参数

init
Generate a default `.octocov.yml` configuration file in the current directory.
ls-files
List all source files recorded in the coverage report.
view, cat
Display file-level coverage details for a given source file.
diff _report_a_ _report_b_
Compare two coverage reports and show the differences.
badge
Generate a coverage badge image based on the current report.

FAQ

What is the octocov command used for?

octocov is a toolkit for collecting code metrics including code coverage, code-to-test ratio, and test execution time. It works both as a local CLI tool and as a CI tool integrated with GitHub Actions. Features include support for multiple coverage report formats (Go, Ruby, Python, Clover, LCOV, and more), badge generation, pull request commenting, and report storage in GitHub, S3, or BigQuery. It can aggregate reports from multiple repositories for centralized monitoring. Configuration is defined in `.octocov.yml`.

How do I run a basic octocov example?

Run `octocov` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does init do in octocov?

Generate a default `.octocov.yml` configuration file in the current directory.