{"id":21847125,"url":"https://github.com/duyet/cov-rs","last_synced_at":"2025-06-12T12:02:03.268Z","repository":{"id":41884698,"uuid":"479777606","full_name":"duyet/cov-rs","owner":"duyet","description":"Rust Source-based Code Coverage for any projects","archived":false,"fork":false,"pushed_at":"2023-10-19T11:00:43.000Z","size":285,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T02:45:29.578Z","etag":null,"topics":["bash","codecov","github-actions","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duyet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-09T16:10:16.000Z","updated_at":"2023-09-14T21:11:51.000Z","dependencies_parsed_at":"2022-08-11T20:10:21.498Z","dependency_job_id":null,"html_url":"https://github.com/duyet/cov-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duyet%2Fcov-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duyet%2Fcov-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duyet%2Fcov-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duyet%2Fcov-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duyet","download_url":"https://codeload.github.com/duyet/cov-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248888890,"owners_count":21178122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","codecov","github-actions","rust","rust-lang"],"created_at":"2024-11-27T23:16:50.689Z","updated_at":"2025-04-14T13:33:16.399Z","avatar_url":"https://github.com/duyet.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Source-based Code Coverage\n\n[![Test](https://github.com/duyet/cov-rs/actions/workflows/test.yaml/badge.svg)](https://github.com/duyet/cov-rs/actions/workflows/test.yaml)\n\nA source-based code coverage enabled with `-C instrument-coverage`, \nwhich uses LLVM's native, efficient coverage instrumentation to generate very precise coverage data.\n\n\n# Usage\n\n```bash\nbash \u003c(curl -s https://raw.githubusercontent.com/duyet/cov-rs/master/cov.sh)\n```\n\n# Github Workflows\n\nSee [.github/workflows/test.yaml](.github/workflows/test.yaml) for example\n\n```yaml\non:\n  push:\n    branches: [master]\n  pull_request:\n    branches: [master]\n\njobs:\n  build:\n    runs-on: ${{ matrix.os }}\n    strategy:\n      matrix:\n        os: [ubuntu-latest, macos-latest]\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v3\n\n      - name: Rust Toolchain\n        uses: actions-rs/toolchain@v1\n        with:\n          toolchain: stable\n\n      - name: Code Coverage\n        env:\n          GITHUB_PULL_REQUEST: ${{ github.event.pull_request.number }}\n        run: |\n          export GITHUB_PULL_REQUEST=${{ env.GITHUB_PULL_REQUEST }}\n          export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}\n          export PROJECT_TITLE=\"Example build on ${{ matrix.os }}\"\n          cd example \u0026\u0026 bash \u003c(curl -s https://raw.githubusercontent.com/duyet/cov-rs/master/cov.sh)\n```\n\nThe coverage report will be shown at Github Actions [logs](https://github.com/duyet/cov-rs/runs/5959116619?check_suite_focus=true).\n\n![](.github/cov-log.png)\n\n## Comment on Github pull requests\n\nIf you set the `GITHUB_PULL_REQUEST`, `GITHUB_TOKEN` \nand `PROJECT_TITLE` (optional), the coverage script will comment the cov report on PR, for example: \nhttps://github.com/duyet/cov-rs/pull/3#issuecomment-1094174485\n\n![](.github/cov-comment.png)\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduyet%2Fcov-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduyet%2Fcov-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduyet%2Fcov-rs/lists"}