{"id":15705163,"url":"https://github.com/a-chacon/minitest-cc","last_synced_at":"2025-05-12T15:39:32.342Z","repository":{"id":41247025,"uuid":"508819390","full_name":"a-chacon/minitest-cc","owner":"a-chacon","description":"Plugin for minitest. It provides minimal information about code coverage.","archived":false,"fork":false,"pushed_at":"2023-04-12T22:54:55.000Z","size":49,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T16:13:27.883Z","etag":null,"topics":["minitest","minitest-plugins","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a-chacon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-29T19:22:47.000Z","updated_at":"2023-10-30T02:33:41.000Z","dependencies_parsed_at":"2024-10-24T06:59:08.420Z","dependency_job_id":"d3b282af-a2ba-4624-a786-178f3748b2e0","html_url":"https://github.com/a-chacon/minitest-cc","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.052631578947368474","last_synced_commit":"600beec5767231571c74576aff6c5f85ccf2fb55"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-chacon%2Fminitest-cc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-chacon%2Fminitest-cc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-chacon%2Fminitest-cc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-chacon%2Fminitest-cc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-chacon","download_url":"https://codeload.github.com/a-chacon/minitest-cc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249909181,"owners_count":21343932,"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":["minitest","minitest-plugins","ruby"],"created_at":"2024-10-03T20:14:53.432Z","updated_at":"2025-04-20T14:30:31.338Z","avatar_url":"https://github.com/a-chacon.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minitest::Cc o Minitest Code Coverage\n\nMinitest::Cc is a plugin for [Minitest](https://github.com/minitest/minitest) that provide a very simple and minimalism measure of code coverage by your tests.\n\n**You need to keep in mind that this information is only a reference and don't represent how effective are your tests**.\n\n\n## Installation\n\nAdd it into your Gemfile:\n```ruby\n# Gemfile\ngem 'minitest-cc'\n```\n\nThen you need to require it in the **very top** of your test helper file:\n\n```ruby\nrequire 'minitest/cc'\nMinitest::Cc.start\n\n```\n\n## Usage\n\nIf you run your tests you will see something like this:\n\n```\nRunning 24 tests in a single process (parallelization threshold is 50)\nRun options: --seed 6319\n\n# Running:\n\n........................\n\n# Coverage:\n\n\nlines: 95%    branches: 75%     methods: 93%\n\n\nFinished in 1.875197s, 12.7987 runs/s, 18.6647 assertions/s.\n24 runs, 35 assertions, 0 failures, 0 errors, 0 skips\n```\n\n### Configuration\n\n#### Coverage mode:\n```ruby\nMinitest::Cc.start(:lines, :branches, :methods) # this is like look by default\n```\n  - You can choose whatever you want. I think are very explicit so don't need explanation.\n\n\nYou can configure two aspects more:\n\n* Mode of cc the report:\n```ruby\nMinitest::Cc.cc_mode = :resume\n```\n  - It could be `:resume`, the default behavior\n  - It could be `:per_file` to get a list of files and his coverage\n\n\n* Files tracked:\n```ruby\nMinitest::Cc.tracked_files = [\n  './app/**/*.rb',\n  './lib/**/*.rb'\n]\n```\n  - Path to your files that should be tested.\n\nThis configuration must be do in the helper file of your tests.\n\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1.  Fork the Project\n2.  Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3.  Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4.  Push to the Branch (`git push origin feature/AmazingFeature`)\n5.  Open a Pull Request\n\n## License\n\nThe gem is available as open source under the terms of the [GPL-3.0 License](https://www.github.com/a-chacon/minitest-cc/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-chacon%2Fminitest-cc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-chacon%2Fminitest-cc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-chacon%2Fminitest-cc/lists"}