{"id":16059410,"url":"https://github.com/y-yagi/minitest-sub_test_case","last_synced_at":"2026-03-11T19:10:37.506Z","repository":{"id":56883957,"uuid":"77004253","full_name":"y-yagi/minitest-sub_test_case","owner":"y-yagi","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-27T23:36:06.000Z","size":18,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-19T10:00:00.752Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/y-yagi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-21T01:17:00.000Z","updated_at":"2019-08-27T23:36:05.000Z","dependencies_parsed_at":"2022-08-20T23:40:25.461Z","dependency_job_id":null,"html_url":"https://github.com/y-yagi/minitest-sub_test_case","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/y-yagi/minitest-sub_test_case","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y-yagi%2Fminitest-sub_test_case","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y-yagi%2Fminitest-sub_test_case/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y-yagi%2Fminitest-sub_test_case/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y-yagi%2Fminitest-sub_test_case/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/y-yagi","download_url":"https://codeload.github.com/y-yagi/minitest-sub_test_case/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y-yagi%2Fminitest-sub_test_case/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30395150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T18:46:22.935Z","status":"ssl_error","status_checked_at":"2026-03-11T18:46:17.045Z","response_time":84,"last_error":"SSL_read: 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":"2024-10-09T04:00:56.176Z","updated_at":"2026-03-11T19:10:37.477Z","avatar_url":"https://github.com/y-yagi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minitest::SubTestCase\n\n`minitest-sub_test_case` makes `sub_test_case` method available in minitest/test.\n\n[![Build Status](https://travis-ci.org/y-yagi/minitest-sub_test_case.svg?branch=master)](https://travis-ci.org/y-yagi/minitest-sub_test_case)\n[![Gem Version](https://badge.fury.io/rb/minitest-sub_test_case.svg)](http://badge.fury.io/rb/minitest-sub_test_case)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'minitest-sub_test_case'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install minitest-sub_test_case\n\n## Usage\n\n```ruby\nrequire 'test_helper'\n\nclass UserTest \u003c Minitest::Test\n  sub_test_case 'validation' do\n    def test_invalid_name\n      assert false\n    end\n\n    def test_invalid_email\n      assert false\n    end\n  end\n\n  def test_user_can_create_todo\n    assert false\n  end\nend\n```\n\nYou can also use it with the Rails test class.\n\n```ruby\nrequire 'test_helper'\n\nclass PageTest \u003c ActiveSupport::TestCase\n  test 'recently updated pages group by date' do\n    ...\n  end\n\n  test 'find page when use valid title' do\n    ...\n  end\n\n  sub_test_case 'validation' do\n    test 'validate error when set invalid title' do\n      ...\n    end\n  end\nend\n```\n\n```ruby\nrequire 'test_helper'\n\nclass BooksTest \u003c ActionDispatch::IntegrationTest\n  setup do\n    ...\n  end\n\n  sub_test_case('create book with author') do\n    setup do\n      ...\n    end\n\n    test \"fail\" do\n      ...\n    end\n  end\n\n  test \"success\" do\n    ...\n  end\nend\n```\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/y-yagi/minitest-sub_test_case. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy-yagi%2Fminitest-sub_test_case","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fy-yagi%2Fminitest-sub_test_case","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy-yagi%2Fminitest-sub_test_case/lists"}