{"id":13526460,"url":"https://github.com/ory/go-acc","last_synced_at":"2025-05-16T02:09:11.090Z","repository":{"id":40625858,"uuid":"100162065","full_name":"ory/go-acc","owner":"ory","description":"Accurate Code Coverage reporting for Golang (Go)","archived":false,"fork":false,"pushed_at":"2023-01-03T12:47:00.000Z","size":103,"stargazers_count":219,"open_issues_count":4,"forks_count":31,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-29T16:07:15.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.ory.am/golang-go-code-coverage-accurate.html","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-13T07:52:04.000Z","updated_at":"2024-10-18T10:56:36.000Z","dependencies_parsed_at":"2023-02-01T06:05:13.239Z","dependency_job_id":null,"html_url":"https://github.com/ory/go-acc","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fgo-acc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fgo-acc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fgo-acc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fgo-acc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ory","download_url":"https://codeload.github.com/ory/go-acc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675597,"owners_count":20977378,"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":[],"created_at":"2024-08-01T06:01:30.051Z","updated_at":"2025-04-08T12:12:18.817Z","avatar_url":"https://github.com/ory.png","language":"Go","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# go-acc\n\n\u003e[!IMPORTANT]\n\u003eYou do not need this tool, because Go now solves this [out of the box](https://dustinspecker.com/posts/go-combined-unit-integration-code-coverage/).\n\nA tool for reporting accurate Code Coverage in Golang. It is a cross platform (osx, windows, linux) adaption of the following bash script:\n\n```bash\ntouch ./coverage.tmp\necho 'mode: atomic' \u003e coverage.txt\ngo list ./... | grep -v /cmd | grep -v /vendor | xargs -n1 -I{} sh -c 'go test -race -covermode=atomic -coverprofile=coverage.tmp -coverpkg $(go list ./... | grep -v /vendor | tr \"\\n\" \",\") {} \u0026\u0026 tail -n +2 coverage.tmp \u003e\u003e coverage.txt || exit 255' \u0026\u0026 rm coverage.tmp\n```\n\n## Installation \u0026 Usage\n\n```\n$ go install github.com/ory/go-acc@latest\n$ go-acc\nA tool for reporting accurate Code Coverage in Golang.\n\nUsage:\n  go-acc \u003cpackages...\u003e [flags]\n\nExamples:\n$ go-acc github.com/some/package\n$ go-acc -o my-coverfile.txt github.com/some/package\n$ go-acc ./...\n$ go-acc $(glide novendor)\n\nFlags:\n      --covermode string   Which code coverage mode to use (default \"atomic\")\n      --ignore strings     Will ignore packages that contains any of these strings\n  -o, --output string      Location for the output file (default \"coverage.txt\")\n  -t, --toggle             Help message for toggle\n      --tags               Build tags for go build and go test commands\n\n```\n\nYou can pass regular go flags in bash after `--`, for example:\n\n```\ngo-acc ./... -- -v -failfast -timeout=20m -tags sqlite\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fory%2Fgo-acc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fory%2Fgo-acc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fory%2Fgo-acc/lists"}