{"id":15687448,"url":"https://github.com/danielparks/zsh-test-harness","last_synced_at":"2026-05-19T14:36:06.090Z","repository":{"id":147678045,"uuid":"531748259","full_name":"danielparks/zsh-test-harness","owner":"danielparks","description":"Simple Zsh Test Harness","archived":false,"fork":false,"pushed_at":"2023-04-11T04:52:46.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T13:35:15.540Z","etag":null,"topics":["testing","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielparks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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-09-02T02:00:40.000Z","updated_at":"2022-09-02T02:52:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f4fec73-4018-4494-8778-f41f99c1a0b3","html_url":"https://github.com/danielparks/zsh-test-harness","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielparks%2Fzsh-test-harness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielparks%2Fzsh-test-harness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielparks%2Fzsh-test-harness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielparks%2Fzsh-test-harness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielparks","download_url":"https://codeload.github.com/danielparks/zsh-test-harness/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246314125,"owners_count":20757457,"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":["testing","zsh"],"created_at":"2024-10-03T17:48:38.196Z","updated_at":"2026-05-19T14:36:06.084Z","avatar_url":"https://github.com/danielparks.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zsh Test Harness\n\n```\n❯ ./run-tests.zsh --help\nUsage: run-tests.zsh [--help] [--show-output] [--keep] [test-files]\n\n  --help         Show this message.\n  --show-output  Show output from all tests, not just the ones that fail.\n  --keep         Keep the test working directory instead of deleting it.\n\ntest-files:\n  Optional path to tests to run. If a path is a directory, it will run all\n  files found within the directory.\n\n  Default: ./tests\n```\n\nYou can define test helpers in files matching the glob `test-*.zsh`, e.g.\n`test-helpers.zsh`. If functions named `before_test` and `after_test` are\ndefined, they will be run before and after each test, respectively.\n\nSee [danielparks-zsh-theme][] for an example of a repo with tests.\n\n## Installation\n\nCopy run-test.zsh into `$PATH`, or just copy it into the repo with the tests.\n\n## Other shell testing projects\n\nOther shell testing frameworks include:\n\n * [ShellSpec](https://shellspec.info) ([GitHub](https://github.com/shellspec/shellspec))\n * [ZUnit](https://zunit.xyz) ([GitHub](https://github.com/zunit-zsh/zunit))\n\n## Development status\n\nI don’t have plans to add features to this, but I might add things if it’s\nhelpful for another project. That said, if you think this is a good fit for you\nbut need changes I’m open to [suggestions][] and [PRs][].\n\n## License\n\nUnless otherwise noted, this project is dual-licensed under the Apache 2 and MIT\nlicenses. You may choose to use either.\n\n * [Apache License, Version 2.0](LICENSE-APACHE)\n * [MIT license](LICENSE-MIT)\n\n### Contributions\n\nUnless you explicitly state otherwise, any contribution you submit as defined\nin the Apache 2.0 license shall be dual licensed as above, without any\nadditional terms or conditions.\n\n\n[danielparks-zsh-theme]: https://github.com/danielparks/danielparks-zsh-theme\n[suggestions]: https://github.com/danielparks/zsh-test-harness/issues\n[PRs]: https://github.com/danielparks/zsh-test-harness/pulls\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielparks%2Fzsh-test-harness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielparks%2Fzsh-test-harness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielparks%2Fzsh-test-harness/lists"}