{"id":30116946,"url":"https://github.com/farbodsalimi/dokimi","last_synced_at":"2025-08-10T10:33:25.582Z","repository":{"id":57226258,"uuid":"492305218","full_name":"farbodsalimi/dokimi","owner":"farbodsalimi","description":"Dokimi offers a number of helper commands for testing in Go.","archived":false,"fork":false,"pushed_at":"2023-01-29T08:45:40.000Z","size":4583,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-31T22:49:52.384Z","etag":null,"topics":["coverage","golang","testing"],"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/farbodsalimi.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-05-14T19:16:43.000Z","updated_at":"2023-02-05T08:48:37.000Z","dependencies_parsed_at":"2023-02-15T21:45:39.916Z","dependency_job_id":null,"html_url":"https://github.com/farbodsalimi/dokimi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/farbodsalimi/dokimi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farbodsalimi%2Fdokimi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farbodsalimi%2Fdokimi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farbodsalimi%2Fdokimi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farbodsalimi%2Fdokimi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farbodsalimi","download_url":"https://codeload.github.com/farbodsalimi/dokimi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farbodsalimi%2Fdokimi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269711638,"owners_count":24463198,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["coverage","golang","testing"],"created_at":"2025-08-10T10:31:42.194Z","updated_at":"2025-08-10T10:33:25.561Z","avatar_url":"https://github.com/farbodsalimi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dokimi\n\n[![Go](https://github.com/farbodsalimi/dokimi/actions/workflows/go.yml/badge.svg)](https://github.com/farbodsalimi/dokimi/actions/workflows/go.yml)\n[![Release](https://github.com/farbodsalimi/dokimi/actions/workflows/release.yml/badge.svg)](https://github.com/farbodsalimi/dokimi/actions/workflows/release.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/farbodsalimi/dokimi)](https://goreportcard.com/report/github.com/farbodsalimi/dokimi)\n[![Maintainability](https://api.codeclimate.com/v1/badges/7c1b6f2aca67479f4220/maintainability)](https://codeclimate.com/github/farbodsalimi/dokimi/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/7c1b6f2aca67479f4220/test_coverage)](https://codeclimate.com/github/farbodsalimi/dokimi/test_coverage)\n\nDokimi provides some helper commands for testing in Go.\n\n**Table of Contents**\n\n- [dokimi](#dokimi)\n  - [Installation](#installation)\n  - [Commands](#commands)\n    - [check-coverage](#check-coverage)\n    - [report](#report)\n      - [Write Istanbul json reports and display them](#write-istanbul-json-reports-and-display-them)\n      - [Only write Istanbul json reports](#only-write-istanbul-json-reports)\n\n## Installation\n\n```bash\ngo install github.com/farbodsalimi/dokimi@latest\n```\n\n## Commands\n\n### check-coverage\n\n```\nUsage:\n  dokimi check-coverage [flags]\n\nFlags:\n  -c, --coverprofile string   coverprofile (default \"coverage.out\")\n  -d, --do-not-fail           do-not-fail\n  -h, --help                  help for check-coverage\n  -t, --threshold float       threshold (default 100)\n```\n\nExample:\n\n```bash\ndokimi check-coverage --threshold=90 --do-not-fail\n```\n\n### report\n\n```\nUsage:\n  dokimi report [flags]\n\nFlags:\n  -h, --help              help for report\n  -i, --input string      Path to input file\n  -o, --output string     Path to output file\n  -r, --reporter string   Reporter name e.g. istanbul, lcov, ...\n      --show              Shows written reports\n```\n\n#### Write Istanbul json reports and display them\n\n1. Go inside your project directory and run your tests:\n\n   ```bash\n   go test -v -coverprofile=coverage.out ./...\n   ```\n\n2. Show your coverage in Istanbul UI:\n\n   ```bash\n   dokimi report --input=coverage.out --output=coverage.json --reporter=istanbul --show\n   ```\n\n#### Only write Istanbul json reports\n\n1. Go inside your project directory and run your tests:\n\n   ```bash\n   go test -v -coverprofile=coverage.out ./...\n   ```\n\n2. Generate Istanbul json file:\n\n   ```bash\n   dokimi report --input=coverage.out --output=coverage.json --reporter=istanbul\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarbodsalimi%2Fdokimi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarbodsalimi%2Fdokimi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarbodsalimi%2Fdokimi/lists"}