{"id":40749020,"url":"https://github.com/hasit/opacover","last_synced_at":"2026-01-21T15:39:12.216Z","repository":{"id":57505741,"uuid":"212883404","full_name":"hasit/opacover","owner":"hasit","description":"Generate HTML representation of OPA test coverage","archived":false,"fork":false,"pushed_at":"2019-10-07T21:16:01.000Z","size":7,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T00:38:49.768Z","etag":null,"topics":["html","opa","rego","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"Go","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/hasit.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":"2019-10-04T18:56:43.000Z","updated_at":"2024-03-01T17:13:32.000Z","dependencies_parsed_at":"2022-09-26T17:51:46.768Z","dependency_job_id":null,"html_url":"https://github.com/hasit/opacover","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hasit/opacover","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasit%2Fopacover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasit%2Fopacover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasit%2Fopacover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasit%2Fopacover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasit","download_url":"https://codeload.github.com/hasit/opacover/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasit%2Fopacover/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28635919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T15:01:31.228Z","status":"ssl_error","status_checked_at":"2026-01-21T14:42:58.942Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["html","opa","rego","testing-tools"],"created_at":"2026-01-21T15:39:11.492Z","updated_at":"2026-01-21T15:39:12.210Z","avatar_url":"https://github.com/hasit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opacover\n\nGenerate HTML representation of OPA test coverage.\n\n## Install\n\nMake sure you have `Go` installed on your machine.\n\n```shell\n$ go version\ngo version go1.13 darwin/amd64\n```\n\nGet `opacover`. The following command will download the source code and place a runnable binary inside `$GOPATH/bin`.\n\n```shell\n$ go get -u https://github.com/hasit/opacover\n```\n\n## Use\n\nWhenever in doubt, `--help` flag will guide you.\n\n```shell\n$ go run main.go --help\ngenerate HTML representation of OPA test coverage\n\nUsage:\n  opacover [flags]\n\nFlags:\n  -h, --help             help for opacover\n  -i, --input string     input file in JSON\n  -m, --modules string   directory path of Rego modules\n```\n\nTo generate an HTML coverage report of OPA's test coverage, you will need a JSON formatted coverage file.\n\n```shell\n$ opa test \u003cpath-to-rego-files\u003e/ -v --coverage \u003e coverage.json\n```\n\nWe will use this JSON file as input to `opacover`.\n\n```shell\n$ $GOPATH/bin/opacover --input coverage.json --modules ./ \u003e coverage.html\n```\n\nNow, open the newly generated `coverage.html` file in your default browser to view it.\n\n## Contribute\n\nFeel free to open issues and pull requests to improve `opacover`.\n\n## Inspirations\n\n1. [OPA](https://www.openpolicyagent.org/)\n2. [Go's Cover Tool](https://golang.org/cmd/cover/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasit%2Fopacover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasit%2Fopacover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasit%2Fopacover/lists"}