{"id":25739156,"url":"https://github.com/molovo/zunit","last_synced_at":"2025-02-26T08:01:58.798Z","repository":{"id":10916624,"uuid":"67451122","full_name":"zunit-zsh/zunit","owner":"zunit-zsh","description":"A powerful testing framework for ZSH projects","archived":false,"fork":false,"pushed_at":"2023-08-14T19:45:33.000Z","size":244,"stargazers_count":201,"open_issues_count":18,"forks_count":22,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-06-16T05:32:57.383Z","etag":null,"topics":["assertions","ci","developer-tools","tap","test-automation","test-framework","test-runner","testing","testing-tools","unit-testing","zsh"],"latest_commit_sha":null,"homepage":"https://zunit.xyz","language":"Shell","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/zunit-zsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-09-05T21:10:23.000Z","updated_at":"2024-06-03T07:02:19.000Z","dependencies_parsed_at":"2024-04-13T03:49:15.665Z","dependency_job_id":null,"html_url":"https://github.com/zunit-zsh/zunit","commit_stats":null,"previous_names":["molovo/zunit"],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunit-zsh%2Fzunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunit-zsh%2Fzunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunit-zsh%2Fzunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunit-zsh%2Fzunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zunit-zsh","download_url":"https://codeload.github.com/zunit-zsh/zunit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240814850,"owners_count":19861955,"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":["assertions","ci","developer-tools","tap","test-automation","test-framework","test-runner","testing","testing-tools","unit-testing","zsh"],"created_at":"2025-02-26T08:01:37.685Z","updated_at":"2025-02-26T08:01:58.502Z","avatar_url":"https://github.com/zunit-zsh.png","language":"Shell","readme":"![ZUnit](https://zunit.xyz/img/logo.png)\n\n[![GitHub release](https://img.shields.io/github/release/zunit-zsh/zunit.svg)](https://github.com/zunit-zsh/zunit/releases/latest) [![Build Status](https://travis-ci.org/zunit-zsh/zunit.svg?branch=master)](https://travis-ci.org/zunit-zsh/zunit) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/zunit-zsh/zunit?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nZUnit is a powerful unit testing framework for ZSH\n\n## Installation\n\n\u003e **WARNING**: Although the majority of ZUnit's functionality works as expected, it is in the early stages of development, and as such bugs are likely to be present. Please continue with caution, and [report any issues](https://github.com/zunit-zsh/zunit/issues/new) you may have.\n\n### [Zulu](https://github.com/zulu-zsh/zulu)\n\n```sh\nzulu install zunit\n```\n\n\u003e **NOTE:** In versions of Zulu prior to `1.2.0`, there is an additional step required after install:\n\n  ```sh\n  cd ~/.zulu/packages/zunit\n  ./build.zsh\n  zulu link zunit\n  ```\n  \n### [zplug](https://github.com/zplug/zplug)\n\nZUnit and its dependencies can all be installed with zplug.\n\n```sh\nzplug 'molovo/revolver', \\\n  as:command, \\\n  use:revolver\nzplug 'zunit-zsh/zunit', \\\n  as:command, \\\n  use:zunit, \\\n  hook-build:'./build.zsh'\n```\n\n\n### Homebrew\n\n```sh\nbrew install zunit-zsh/zunit/zunit\n```\n\n### Manual\n\n```sh\ngit clone https://github.com/zunit-zsh/zunit\ncd ./zunit\n./build.zsh\nchmod u+x ./zunit\ncp ./zunit /usr/local/bin\n```\n\n\u003e ZUnit requires [Revolver](https://github.com/molovo/revolver) to be installed, and in your `$PATH`. The zulu or homebrew installation methods will install this dependency for you.\n\n## Writing Tests\n\n### Test syntax\n\nTests in ZUnit have a simple syntax, which is inspired by the [BATS](https://github.com/sstephenson/bats) framework.\n\n```sh\n#!/usr/bin/env zunit\n\n@test 'My first test' {\n\t# Test contents here\n}\n```\n\nThe body of each test can contain any valid ZSH code. The zunit shebang `#!/usr/bin/env zunit` **MUST** appear at the top of each test file, or ZUnit will not run it.\n\n## Documentation\n\nFor a full breakdown of ZUnit's syntax and functionality, check out the [official documentation](https://zunit.xyz/docs/).\n\n## Contributing\n\nAll contributions are welcome, and encouraged. Please read our [contribution guidelines](contributing.md) and [code of conduct](code-of-conduct.md) for more information.\n\n## License\n\nCopyright (c) 2016 James Dinsdale \u003chi@molovo.co\u003e (molovo.co)\n\nZUnit is licensed under The MIT License (MIT)\n\n## Team\n\n* [James Dinsdale](http://molovo.co)\n","funding_links":[],"categories":["Shells"],"sub_categories":["ZSH"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmolovo%2Fzunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmolovo%2Fzunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmolovo%2Fzunit/lists"}