{"id":15287980,"url":"https://github.com/caiquemitsuoka/yokai","last_synced_at":"2025-09-11T07:36:55.666Z","repository":{"id":257804193,"uuid":"861741574","full_name":"CaiqueMitsuoka/yokai","owner":"CaiqueMitsuoka","description":"A test runner and watcher designed for fast interactive development","archived":false,"fork":false,"pushed_at":"2025-08-23T04:12:31.000Z","size":49,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-24T07:53:25.486Z","etag":null,"topics":["elixir","elixir-lang","hexpm","runner","tdd","test"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/CaiqueMitsuoka.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,"zenodo":null}},"created_at":"2024-09-23T12:45:37.000Z","updated_at":"2025-08-23T04:12:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"15f0a99c-01a4-4a73-9c5d-937cad3f1bc4","html_url":"https://github.com/CaiqueMitsuoka/yokai","commit_stats":null,"previous_names":["caiquemitsuoka/yokai"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/CaiqueMitsuoka/yokai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaiqueMitsuoka%2Fyokai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaiqueMitsuoka%2Fyokai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaiqueMitsuoka%2Fyokai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaiqueMitsuoka%2Fyokai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaiqueMitsuoka","download_url":"https://codeload.github.com/CaiqueMitsuoka/yokai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaiqueMitsuoka%2Fyokai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274595525,"owners_count":25314017,"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-09-11T02:00:13.660Z","response_time":74,"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":["elixir","elixir-lang","hexpm","runner","tdd","test"],"created_at":"2024-09-30T15:43:39.494Z","updated_at":"2025-09-11T07:36:55.654Z","avatar_url":"https://github.com/CaiqueMitsuoka.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yokai\n[![Hex.pm](https://img.shields.io/hexpm/v/yokai.svg)](https://hex.pm/packages/yokai)\n[![Downloads](https://img.shields.io/hexpm/dt/yokai.svg)](https://hex.pm/packages/yokai)\n[![Documentation](https://img.shields.io/badge/documentation-gray)](https://hexdocs.pm/yokai)\n\nYokai is an alternative test runner for ExUnit base on file watcher. Watchs for code changes and changes in the selected test files to auto trigger a new testa run hot reloading the code avoiding a cold start of the app/vm. The BEAM way.\n\n## Installation\n\n```elixir\n# You need this to mix watch apply MIX_ENV=test for you.\ndef cli do\n  [\n    preferred_envs: [{:watch, :test}]\n  ]\nend\n\ndef deps do\n  [\n    {:yokai, \"~\u003e 0.3.1\"}\n  ]\nend\n```\n\n## Usage\n\n```shell\n# Run all tests and watch for changes\nmix watch\n\n# Run only this test file and watch for changes\nmix watch test/module_name.exs\n\n# Run all tests following a wildcard pattern\nmix watch test/domain/*\n\n# Increate the compile timeout for big projects.\nmix watch --compile-timeout 60\n```\n\nWhile running, all changes to any file at `lib/` or `test/` will trigger a run.\n\nBut while it waits for a file change, you can enter commands yourself.\n\n### Menu\n\n| Command | Description                   |\n| ------- | ----------------------------- |\n| a       | Run all tests once            |\n| q       | Quit                          |\n| r       | Rerun tests                   |\n| w       | Update the test files pattern |\n\n## Reason\n\nThe point is to have a faster iteration for then developing test/changes or applying TDD.\n\nWhen talking about this idea it always come up that you need to reload the environment when you change a config. And\nto this there is 2 points against.\n - Most of the time you are not changing configuration between runs, but when you do: mix test still there, exactly the same.\n - The hot reload from Phoenix is good enough for most apps and workflows. This applies the same rules but for tests.\n\n## Goals\n\nHave a fast code reloader and a nice CLI to quick iterate on development.\n\n- [x] Hot reload project code before each run\n- [x] Hot reload test file before each run\n- [x] Accept test file patterns to select test e.g accept `test/*/sample*`\n- [x] Option to clear console between run\n- [ ] Keypress to trigger a run(Partially implemented, requires enter)\n- [ ] Keypress to run all tests(Partially implemented, requires enter)\n- [ ] Keypress to redefine the pattern(Partially implemented, requires enter)\n- [ ] MCP server/tool for client to collect latest test run results.\n- [ ] MCP tool to redefine runned configuration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaiquemitsuoka%2Fyokai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaiquemitsuoka%2Fyokai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaiquemitsuoka%2Fyokai/lists"}