octocov logo

octocov

Code metrics toolkit for collecting coverage, code-to-test ratio, test execution time, and custom metrics from multiple report formats

octocov is a code metrics collection and reporting toolkit that analyzes coverage reports, code-to-test ratios, test execution times, and custom metrics. It supports multiple coverage report formats including Go, JavaScript, Python, and Java ecosystems, making it language-agnostic for most development workflows.

The tool operates both as a CI integration and standalone CLI. In GitHub Actions, it automatically comments code metrics on pull requests, generates job summaries, and can store reports to various datastores including GitHub repositories, S3, BigQuery, and Google Cloud Storage. As a CLI tool, it provides terminal-based viewing with commands like octocov ls-files, octocov view, and octocov diff for comparing metrics between reports.

octocov includes validation capabilities through configurable acceptance thresholds that fail builds when coverage drops below specified levels. It can generate self-hosted SVG badges for metrics, eliminating dependencies on external badge services. The tool also supports a central mode for aggregating reports across multiple repositories and can merge coverage data from parallel CI jobs or test shards.

Developers and DevOps teams use octocov to maintain code quality standards, track metrics over time, and integrate coverage reporting into their CI/CD pipelines. The configuration is managed through .octocov.yml files, and the tool integrates with GitHub Actions through the dedicated octocov-action.

Pull request comment with coverage metrics

GitHub Actions job summary

Terminal interface showing coverage view

Alternatives & related tools

add a badge to your README

Maintain octocov? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/octocov.svg)](https://www.trmn.sh/tools/octocov?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/octocov?utm_source=badge"><img src="https://www.trmn.sh/badge/octocov.svg" alt="Featured on trmn" height="20"></a>