{"id":32292098,"url":"https://github.com/bitsydarel/db_test_coverage","last_synced_at":"2026-02-22T01:37:33.305Z","repository":{"id":48409142,"uuid":"387911489","full_name":"bitsydarel/db_test_coverage","owner":"bitsydarel","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-27T16:51:34.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T03:18:07.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitsydarel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-07-20T20:53:17.000Z","updated_at":"2021-07-27T16:51:18.000Z","dependencies_parsed_at":"2022-09-07T07:22:14.798Z","dependency_job_id":null,"html_url":"https://github.com/bitsydarel/db_test_coverage","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bitsydarel/db_test_coverage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsydarel%2Fdb_test_coverage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsydarel%2Fdb_test_coverage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsydarel%2Fdb_test_coverage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsydarel%2Fdb_test_coverage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitsydarel","download_url":"https://codeload.github.com/bitsydarel/db_test_coverage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsydarel%2Fdb_test_coverage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29703227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"ssl_error","status_checked_at":"2026-02-21T23:35:03.832Z","response_time":107,"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":[],"created_at":"2025-10-23T03:10:20.446Z","updated_at":"2026-02-22T01:37:33.293Z","avatar_url":"https://github.com/bitsydarel.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# db_test_coverage\n\ntest coverage tool for dart, flutter.\n\n## Overview\n\nA command-line tool that run tests with coverage on a project.\n\nIt’s help you automate verification that your project code coverage meet your expected standard.\n\n[license](https://github.com/bitsydarel/db_test_coverage/blob/master/LICENSE).\n\n\u003cbr\u003e\n\n## Installation\n\ndb_test_coverage is dependent on lcov being installed.\n\nSo first install lcov.\n\n### MacOS\n\n```shell\nbrew install lcov\n```\n\n### Linux\n\n```shell\napt install lcov\n```\n\nAfter, installing lcov you can run.\n\n```bash\npub global activate db_test_coverage\n```\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Usage\n```shell\ntest_coverage --package-name example \u003clocal project directory\u003e\n```\n\n```shell\nOptions:\n--project-type                        Specify the type of project the script is run on\n\n      [flutter] (default)             Test coverage for flutter project\n\n--package-name (mandatory)            Specify the package name of this project\n--src-dir                             Specify the src directory of this project\n                                      (defaults to \"lib/src\")\n--test-dir                            Specify the test directory of this project\n                                      (defaults to \"test\")\n--coverage-dir-path                   Specify the test coverage directory of this project\n                                      (defaults to \".test_coverage\")\n--coverage-exclude=\u003clib/**.g.dart\u003e    Specify the file pattern from the coverage report\n\n--min-cov                             Specify the minimum coverage percentage of code coverage allowed, from 0.0 to 1.0\n                                      (defaults to \"0.0\")\n--[no-]help                           Print help message\n```\n\n### Run db_test_coverage and check if code coverage is at least 70%\n\n```shell\ntest_coverage --package-name example --min-cov 0.7 \u003clocal project directory\u003e\n```\n\n### Run db_test_coverage but removed unneeded files from the code coverage report.\n\n```shell\ntest_coverage --package-name example --coverage-exclude 'lib/src/*.g.dar', 'lib/generated_plugin_registrant.dart' \u003clocal project directory\u003e\n```\n\n\u003cbr\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitsydarel%2Fdb_test_coverage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitsydarel%2Fdb_test_coverage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitsydarel%2Fdb_test_coverage/lists"}