Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
octocov is a toolkit for collecting code metrics (code coverage, code to test ratio, test execution time and your own custom metrics).
| Date | Stars |
|---|---|
| 2026-07-24 | 494 |
| 2026-07-25 | 495 |
| 2026-07-28 | 495 |
| 2026-07-30 | 495 |
| 2026-08-06 | 495 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
35.0
growth rate 0.00%/day
<p align="center">
<img src="https://github.com/k1LoW/octocov/raw/main/docs/logo.png" width="200" alt="octocov">
</p>
   [](https://github.com/k1LoW/octocov/actions/workflows/ci.yml)
`octocov` is a toolkit for collecting code metrics (code coverage, code to test ratio, test execution time and **[your own custom metrics](#custom-metrics)**).
Key features of `octocov` are:
- **Useful both [as a CI tool](#on-github-actions) and [as a CLI tool](#on-terminal)**
- **[Support multiple coverage report formats](#supported-coverage-report-formats).**
- **[Support multiple code metrics](#supported-code-metrics).**
- **[Support for even generating coverage report badges](#generate-report-badges-self).**
- **[Have a mechanism to aggregate reports from multiple repositories](#store-report-to-datastores).**
## Getting Started
### On GitHub Actions
**:octocat: GitHub Actions for octocov is [here](https://github.com/k1LoW/octocov-action) !!**
First, run test with [coverage report output](#supported-coverage-report-formats).
For example, in case of Go language, add `-coverprofile=coverage.out` option as follows
``` console
$ go test ./... -coverprofile=coverage.out
```
And generete `.octocov.yml` to your repository.
``` console
$ octocov init
.octocov.yml is generated
```
And set up a workflow file as follows and run octocov on GitHub Actions.
``` yaml
# .github/workflows/ci.yml
name: Test
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
-
uses: actions/setup-go@v4
with:
go-version-file: go.mod
-
name: Run tests with coverage report output
run: go test ./... -coverprofile=coverage.out
-
uses: k1LoW/octocov-action@v1
```
Then, octocov comment the report of the code metrics to the pull request.

It is also possible to add reports to [GitHub Actions Job Summaries](https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/) by editing .octocov.yml.

It can also be inserted into the body of a pull request.

> **Note** that only pull requests from the same repository can be commented on (Reporting to GitHub Actions Job Summaries is permitted). This is because the workflow token of a forked pull request does not have write permission.
### On Terminal
octocov acts as a code metrics viewer on the terminal.
For example, in case of Go language, add `-coverprofile=coverage.out` option as follows
``` console
$ go test ./... -coverprofile=coverage.out
```
And run `octocov ls-files` , `octocov view [FILE...]` and `octocov diff [REPORT_A] [REPORT_B]`

## Usage example
### Comment report to pull request
By setting `comment:`, [comment the reports to pull request](https://github.com/k1LoW/octocov/pull/30#issuecomment-860188829).

``` yaml
# .octocov.yml
comment:
hideFooterLink: false # hide octocov link
```
octocov checks for **"Code Coverage"** by default. If it is running on GitHub Actions, it will also measure **"Test Execution Time"**.
If you want to measure **"Code to Test Ratio"**, set `codeToTestRatio:`.
``` yaml
comment:
codeToTestRatio:
code:
- '**/*.go'
- '!**/*_test.go'
test:
- '**/*_test.go'
```
By setting `report:` ( `report.path:` or `report.datastores` ) and `diff:` ( `diff.path:` or `diff.datastores` ) additionally, it is possible to show differences from previous reports as well.
``` yaml
comment:
updatePrevious: trExcerpt of 31,810 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:4dccbf1540c33e54, topic:testing