{"id":20624886,"url":"https://github.com/nitrux/tbd","last_synced_at":"2025-06-10T09:33:42.271Z","repository":{"id":73691952,"uuid":"307585492","full_name":"Nitrux/tbd","owner":"Nitrux","description":"Tests your programs.","archived":false,"fork":false,"pushed_at":"2025-01-11T18:19:30.000Z","size":39,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-08T16:17:06.489Z","etag":null,"topics":["bash","bdd","bdd-framework","shell","shell-script","shell-scripting","shell-scripts","tbd","tdd","tdd-framework","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nitrux.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},"funding":{"custom":["paypal.me/luislavaire"]}},"created_at":"2020-10-27T04:31:40.000Z","updated_at":"2025-01-11T18:19:33.000Z","dependencies_parsed_at":"2025-04-15T15:04:55.226Z","dependency_job_id":"c0d62637-2c62-4a9d-8377-feb032dbaad8","html_url":"https://github.com/Nitrux/tbd","commit_stats":{"total_commits":75,"total_committers":1,"mean_commits":75.0,"dds":0.0,"last_synced_commit":"3cc326b1d836184f47b473798d00eaba1bef7f03"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitrux%2Ftbd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitrux%2Ftbd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitrux%2Ftbd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitrux%2Ftbd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nitrux","download_url":"https://codeload.github.com/Nitrux/tbd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitrux%2Ftbd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259048410,"owners_count":22797730,"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":["bash","bdd","bdd-framework","shell","shell-script","shell-scripting","shell-scripts","tbd","tdd","tdd-framework","zsh"],"created_at":"2024-11-16T13:07:12.483Z","updated_at":"2025-06-10T09:33:42.232Z","avatar_url":"https://github.com/Nitrux.png","language":"Shell","readme":"# tbd\n\n\u003e _Test your programs._\n\nA simple program for testing programs, with minimal syntax.\nIt runs atop `bash`, so you can use all of it.\n\n## Usage.\n\nWrite your tests in a file called `testfile` and run `tbd` in\nthe same directory where your `testfile` is.\n\n```\n $ pwd\n/home/me/dev/tbd\n $ ls\nLICENSE  README.md  tbd  testfile\n $ tbd\n- true\n- false\n ^ fail ($? = 1).\n- return 4\n ^ fail ($? = 4).\n- echo okay\n- echo your home is at /home/me.\n```\n\n`tbd` exports just one function: `-`, which runs a test:\n\n```\n- '\u003ccmd\u003e [args]'\n```\n\nBy default, `tbd` will continue running tests when it finds an error.\nIf want it to abort on error, just set the variable `TBD_ERREXIT`\nto any non-empty value.\n\nThis is how a real `testfile` could look like:\n\n```shell\n- 'echo \"Hi there!\"'\n- 'false'       # This error will not result in abortion.\n\nTBD_ERREXIT=1   # Errors will now result on abortion.\n- 'false'       # tbd exits.\n- 'echo \"This will not be printed.\"'\n```\n","funding_links":["paypal.me/luislavaire"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrux%2Ftbd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitrux%2Ftbd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrux%2Ftbd/lists"}