{"id":13811464,"url":"https://github.com/joy-framework/tester","last_synced_at":"2025-05-14T19:33:28.423Z","repository":{"id":133562473,"uuid":"200277015","full_name":"joy-framework/tester","owner":"joy-framework","description":"A testing library for janet","archived":false,"fork":false,"pushed_at":"2020-11-05T04:27:28.000Z","size":35,"stargazers_count":14,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-04T04:01:07.223Z","etag":null,"topics":["janet"],"latest_commit_sha":null,"homepage":"","language":null,"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/joy-framework.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}},"created_at":"2019-08-02T17:58:57.000Z","updated_at":"2022-09-02T23:57:40.000Z","dependencies_parsed_at":"2024-01-13T15:37:20.430Z","dependency_job_id":"da8b6f7a-dec0-4906-8512-fed4f9401a33","html_url":"https://github.com/joy-framework/tester","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joy-framework%2Ftester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joy-framework%2Ftester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joy-framework%2Ftester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joy-framework%2Ftester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joy-framework","download_url":"https://codeload.github.com/joy-framework/tester/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225307780,"owners_count":17453870,"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":["janet"],"created_at":"2024-08-04T04:00:21.683Z","updated_at":"2024-11-19T06:32:29.999Z","avatar_url":"https://github.com/joy-framework.png","language":null,"readme":"# tester\n\n__A testing library for janet__\n\n## Installation\n\nAdd the dependency [https://github.com/joy-framework/tester](https://github.com/joy-framework/tester) to your `project.janet` file:\n\n```clojure\n(declare-project\n  :dependencies [\"https://github.com/joy-framework/tester\"])\n```\n\n## Usage\n\nCreate a `.janet` file for testing and use this library like so:\n\n\n```clojure\n(import tester :prefix \"\" :exit true)\n\n(deftest\n  (test \"1 + 1 = 2\"\n    (is (= 2 (+ 1 1))))\n\n  (test \"expected = actual\"\n    (let [expected \"expected\"\n          actual \"expected\"]\n      (is (= expected actual)))))\n```\n\nRun your tests from the terminal with `jpm test` in your project directory\n\n```sh\njpm test\n```\n\nFor a better workflow, use [entr](https://github.com/eradman/entr) to restart `jpm test` automatically on a file change like this:\n\n```clojure\n; # ... rest of project.janet above\n\n(phony \"watch\" []\n  (os/shell \"find . -name '*.janet' | entr -r -d jpm test\"))\n```\n\nThen run this from the terminal and you're all set to get a fast running test suite on any file change in `src` or in `test`\n\n```sh\njpm run watch\n```\n\n## Contribute\n\nAny issues or pull requests are welcome!\n\n## License\n\nMIT\n","funding_links":[],"categories":["Testing"],"sub_categories":["Graphics"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoy-framework%2Ftester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoy-framework%2Ftester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoy-framework%2Ftester/lists"}