{"id":16162113,"url":"https://github.com/peterdavehello/bu","last_synced_at":"2026-05-01T13:31:32.788Z","repository":{"id":70808010,"uuid":"48940099","full_name":"PeterDaveHello/bu","owner":"PeterDaveHello","description":"an incomplete and simple tool for bash script unit test, as practice ...","archived":false,"fork":false,"pushed_at":"2023-12-15T17:29:54.000Z","size":62,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T03:37:42.093Z","etag":null,"topics":["bash","script","test","unit-test"],"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/PeterDaveHello.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}},"created_at":"2016-01-03T09:09:35.000Z","updated_at":"2025-03-02T15:13:23.000Z","dependencies_parsed_at":"2023-12-15T18:43:07.434Z","dependency_job_id":null,"html_url":"https://github.com/PeterDaveHello/bu","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/PeterDaveHello/bu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fbu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fbu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fbu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fbu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterDaveHello","download_url":"https://codeload.github.com/PeterDaveHello/bu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fbu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32499681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["bash","script","test","unit-test"],"created_at":"2024-10-10T02:29:06.832Z","updated_at":"2026-05-01T13:31:32.769Z","avatar_url":"https://github.com/PeterDaveHello.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bu [![Build Status](https://travis-ci.org/PeterDaveHello/bu.svg)](https://travis-ci.org/PeterDaveHello/bu)\nsimple tool for bash script unit test\n\n![Screenshot](bu.png)\n\n## Usage\n\nPut test scripts in a folder, then run:\n```\nBU_TESTS_PATH=\"path/of/folder/to/place/tests\" /path/to/bu/bu_test.sh\n```\n\n## functions\n\n### bu_assert\n\n```sh\nbu_assert \"function or command to call\" \"expected result\"\nbu_assert \"function or command to call\" \"expected result\" \"self defined error message\"\n```\n\n### bu_assert_return\n\n```sh\nbu_assert_return \"function or command to call\" \"expected exit code / return code\"\nbu_assert_return \"function or command to call\" \"expected exit code / return code\" \"self defined error message\"\n```\n\n### bu_todo_assert\n\n```sh\nbu_todo_assert \"function or command to call, but not implmented or not finished yet\" \"expected result\"\n```\n\n### bu_todo_assert_return\n\n```sh\nbu_todo_assert_return \"function or command to call, but not implmented or not finished yet\" \"expected exit code / return code\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdavehello%2Fbu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterdavehello%2Fbu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdavehello%2Fbu/lists"}