{"id":22065950,"url":"https://github.com/iij/mruby-mtest","last_synced_at":"2025-10-09T03:41:16.369Z","repository":{"id":6132604,"uuid":"7361006","full_name":"iij/mruby-mtest","owner":"iij","description":"minimum test framework for mruby","archived":false,"fork":false,"pushed_at":"2018-12-22T00:11:21.000Z","size":38,"stargazers_count":29,"open_issues_count":1,"forks_count":13,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-13T01:55:33.120Z","etag":null,"topics":["minitest","mruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/iij.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-28T23:30:26.000Z","updated_at":"2023-12-02T22:35:30.000Z","dependencies_parsed_at":"2022-07-05T20:33:11.780Z","dependency_job_id":null,"html_url":"https://github.com/iij/mruby-mtest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iij/mruby-mtest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iij%2Fmruby-mtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iij%2Fmruby-mtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iij%2Fmruby-mtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iij%2Fmruby-mtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iij","download_url":"https://codeload.github.com/iij/mruby-mtest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iij%2Fmruby-mtest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000714,"owners_count":26082911,"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-10-09T02:00:07.460Z","response_time":59,"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":["minitest","mruby"],"created_at":"2024-11-30T19:22:48.130Z","updated_at":"2025-10-09T03:41:16.354Z","avatar_url":"https://github.com/iij.png","language":"Ruby","readme":"Minimum Test Framework for mruby\n=========\n\n[![Build Status](https://travis-ci.org/iij/mruby-mtest.svg?branch=master)](https://travis-ci.org/iij/mruby-mtest)\n\n## example\n\n```ruby\nclass Test4MTest \u003c MTest::Unit::TestCase\n  def test_assert\n    assert(true)\n    assert(true, 'true sample test')\n  end\nend\n\nMTest::Unit.new.run\n```\n\nThis example outputs results in a format similar to minitest.\n\nYou can also use `MTest::Unit.new.run` to get mruby-test style output.  It is\nOK to use minitest style output with mrbtest.  mruby-test will be notified of\ntest runs with either method.\n\n### How to use mrbgem's mrbtest\n\n```ruby\nif Object.const_defined?(:MTest)\n  class Test4MTest \u003c MTest::Unit::TestCase\n    def test_assert_nil\n      assert_nil(nil, 'nil sample test')\n    end\n  end\n\n  if $ok_test\n    MTest::Unit.new.mrbtest\n  else\n    MTest::Unit.new.run\n  end\nelse\n  $asserts \u003c\u003c \"test skip of Test4MTest.\"  if $asserts\nend\n```\n\n## TODO\n\n - MiniTest::Unit.autorun is not implemented (because mruby hasn't ``at_exit`` method.)\n\n\n## License\n\nCopyright (c) 2013 Internet Initiative Japan Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a \ncopy of this software and associated documentation files (the \"Software\"), \nto deal in the Software without restriction, including without limitation \nthe rights to use, copy, modify, merge, publish, distribute, sublicense, \nand/or sell copies of the Software, and to permit persons to whom the \nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in \nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR \nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE \nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING \nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER \nDEALINGS IN THE SOFTWARE.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiij%2Fmruby-mtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiij%2Fmruby-mtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiij%2Fmruby-mtest/lists"}