{"id":22981026,"url":"https://github.com/rubyworks/microtest","last_synced_at":"2025-04-02T09:42:04.198Z","repository":{"id":56883597,"uuid":"2192368","full_name":"rubyworks/microtest","owner":"rubyworks","description":"Microminal Test::Unit/MiniTest Compatible Test Framework","archived":false,"fork":false,"pushed_at":"2013-03-10T21:42:06.000Z","size":148,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T14:43:24.727Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rubyworks.github.com/microtest","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubyworks.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-08-11T16:48:07.000Z","updated_at":"2013-10-03T15:59:59.000Z","dependencies_parsed_at":"2022-08-20T23:40:22.482Z","dependency_job_id":null,"html_url":"https://github.com/rubyworks/microtest","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fmicrotest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fmicrotest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fmicrotest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fmicrotest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubyworks","download_url":"https://codeload.github.com/rubyworks/microtest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246793021,"owners_count":20834921,"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":[],"created_at":"2024-12-15T01:46:45.680Z","updated_at":"2025-04-02T09:42:04.163Z","avatar_url":"https://github.com/rubyworks.png","language":"Ruby","readme":"# MicroTest\n\n[![Gem Version](https://badge.fury.io/rb/microtest.png)](http://badge.fury.io/rb/microtest)\n[![Build Status](https://secure.travis-ci.org/rubyworks/microtest.png)](http://travis-ci.org/rubyworks/microtest) \u0026nbsp; \u0026nbsp;\n[![Flattr Me](http://api.flattr.com/button/flattr-badge-large.png)](http://flattr.com/thing/324911/Rubyworks-Ruby-Development-Fund)\n\n[Website](http://rubyworks.github.com/microtest) \u0026middot;\n[API](http://rubydoc.info/gems/microtest) \u0026middot;\n[Report Issue](http://github.com/rubyworks/microtest/issues) \u0026middot;\n[Source Code](http://github.com/rubyworks/microtest)\n\n\n## Description\n\nMicroTest is a minimal Test::Unit and MiniTest compatible \ntest framework that runs on top of Ruby Test.\n\n\n## Installation\n\nUsing Rubygems:\n\n    $ gem install microtest\n\n\n## Instruction\n\nTests are written in the same manner as they are for Ruby's\ntraditional test framework(s). The only significant difference\nis that an assertions framework library needs to be required\nalong with the test library itself. MicroTest comes with a \ntraditional assertions system for backward compatability\nwith TestUnit and MiniTest. Simply require `microtest/assertion`\nto get it. Alternatively any BRASS compliant assertion framework\ncan be used.\n\n```ruby\nrequire 'microtest'\nrequire 'microtest/assertions'\n\nclass ExampleTest \u003c MicroTest::TestCase\n\n  #\n  def setup\n    @a = 1\n  end\n\n  #\n  def test_alpha_is_one\n    assert_equal(1, @a)\n  end\n\nend\n```\n\nFor drop in compatibility with Test::Unit, load `microtest/testunit`.\n\n```ruby\nrequire 'microtest/testunit'\nrequire 'microtest/assertions'\n\nclass ExampleTest \u003c Test::Unit::TestCase\n  ...\nend\n```\n\nTo run tests use the `rubytest` command line utility.\n\n\n    $ rubytest -Ilib test/test_example.rb\n\n\nSee [RubyTest](http://rubyworks.github.com/rubytest) for more details on this.\n\n\n## License\n\nCopyright (c) 2011 Rubyworks\n\nMicroTest is distributes under the terms of the **FreeBSD** license.\n\nSee License.txt for details.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fmicrotest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyworks%2Fmicrotest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fmicrotest/lists"}