{"id":18492662,"url":"https://github.com/ybiquitous/easytest","last_synced_at":"2025-08-11T00:10:27.257Z","repository":{"id":60810881,"uuid":"545394849","full_name":"ybiquitous/easytest","owner":"ybiquitous","description":"Easy testing for Ruby","archived":false,"fork":false,"pushed_at":"2024-06-07T07:06:08.000Z","size":205,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-27T15:06:05.663Z","etag":null,"topics":["ruby","test"],"latest_commit_sha":null,"homepage":"https://ybiquitous.github.io/easytest/","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/ybiquitous.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-04T09:39:13.000Z","updated_at":"2024-06-07T07:04:32.000Z","dependencies_parsed_at":"2024-06-07T07:42:47.948Z","dependency_job_id":"45e1c412-e7b3-418d-8cd1-9bd53451f10e","html_url":"https://github.com/ybiquitous/easytest","commit_stats":{"total_commits":108,"total_committers":2,"mean_commits":54.0,"dds":0.0092592592592593,"last_synced_commit":"f043e93e253d4d4482e51e7d1ee2f9d0ef321dc7"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/ybiquitous/easytest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybiquitous%2Feasytest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybiquitous%2Feasytest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybiquitous%2Feasytest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybiquitous%2Feasytest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ybiquitous","download_url":"https://codeload.github.com/ybiquitous/easytest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybiquitous%2Feasytest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269809490,"owners_count":24478549,"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-08-10T02:00:08.965Z","response_time":71,"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":["ruby","test"],"created_at":"2024-11-06T13:08:57.610Z","updated_at":"2025-08-11T00:10:27.210Z","avatar_url":"https://github.com/ybiquitous.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/easytest.svg)](https://badge.fury.io/rb/easytest)\n[![CI](https://github.com/ybiquitous/easytest/actions/workflows/ci.yml/badge.svg)](https://github.com/ybiquitous/easytest/actions/workflows/ci.yml)\n\n# Easytest\n\n\u003e makes you write tests easily\n\nEasytest is a tiny testing framework for Ruby with a familiar DSL.\n\n## Installation\n\nAdd this line to your `Gemfile` for Bundler:\n\n```ruby\ngem \"easytest\"\n```\n\nOr install it via `gem`:\n\n```shell\ngem install easytest\n```\n\n## Documentation\n\nYou can read more about Easytest on the [official website](https://ybiquitous.github.io/easytest/).\n\n## Usage\n\nThis section explains easy usage.\n\nFirst, put `test/addition_test.rb` as below:\n\n```ruby\nrequire \"easytest\"\n\nextend Easytest::DSL\n\ntest \"addition\" do\n  expect(1 + 2).to_eq 2\nend\n```\n\nThen, run `easytest`:\n\n```console\n$ easytest\n FAIL  test/addition_test.rb\n  ✕ addition  (should equal)\n\n    Expected: 2\n    Received: 3\n\n    # test/addition_test.rb:6:in `block in \u003ctop (required)\u003e'\n\n\nTests:  1 failed, 0 passed, 1 total (1 files)\nTime:   0.00087 seconds\n```\n\nOops. Let's fix the failure:\n\n```diff\n- expect(1 + 2).to_eq 2\n+ expect(1 + 2).to_eq 3\n```\n\nThen, run it again:\n\n```console\n$ easytest\n PASS  test/addition_test.rb\n\nTests:  1 passed, 1 total (1 files)\nTime:   0.00077 seconds\n```\n\nThe test now passes! 🎉\n\n### Hooks\n\nYou can add hooks called `before` and `after` to each test case:\n\n```ruby\nbefore do\n  # set up something...\nend\n\nafter do\n  # clean up something...\nend\n\ntest \"something\" do\n  # test something...\nend\n```\n\n### Skip\n\nIf you want to skip any cases, you can change `test` to `skip`:\n\n```diff\n- test \"addition\" do\n+ skip \"addition\" do\n```\n\nSkipped cases will be reported as \"skipped\".\n\n### Only\n\nIf you want to run only any cases, you can use `test` to `only`:\n\n```diff\n- test \"addition\" do\n+ only \"addition\" do\n```\n\nOnly cases with `only` will be run, and other cases will be skipped.\n\n### To-do\n\nIf you want to write to-do cases, you can use `test` without a block:\n\n```ruby\ntest \"addition\"\n```\n\nTo-do cases will be reported as \"todo\".\n\n### Watch\n\nIf you want to run tests immediately when changing code, specify the `--watch` option:\n\n```shell\neasytest --watch\n```\n\nThis *watch* mode is useful during development.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fybiquitous%2Feasytest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fybiquitous%2Feasytest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fybiquitous%2Feasytest/lists"}