{"id":15374700,"url":"https://github.com/mrtazz/minibashtest","last_synced_at":"2025-04-15T15:12:25.067Z","repository":{"id":66811938,"uuid":"55979486","full_name":"mrtazz/minibashtest","owner":"mrtazz","description":"simplest unit testing framework for bash","archived":false,"fork":false,"pushed_at":"2016-04-11T20:55:02.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T15:12:24.506Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mrtazz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2016-04-11T14:30:08.000Z","updated_at":"2023-07-25T14:01:16.000Z","dependencies_parsed_at":"2023-04-08T19:16:09.539Z","dependency_job_id":null,"html_url":"https://github.com/mrtazz/minibashtest","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/mrtazz%2Fminibashtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2Fminibashtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2Fminibashtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2Fminibashtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrtazz","download_url":"https://codeload.github.com/mrtazz/minibashtest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094933,"owners_count":21211837,"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":[],"created_at":"2024-10-01T13:59:33.170Z","updated_at":"2025-04-15T15:12:25.062Z","avatar_url":"https://github.com/mrtazz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minibashtest\n\n[![Build Status](https://travis-ci.org/mrtazz/minibashtest.svg?branch=master)](https://travis-ci.org/mrtazz/minibashtest)\n[![Packagecloud](https://img.shields.io/badge/packagecloud-available-brightgreen.svg)](https://packagecloud.io/mrtazz/minibashtest)\n[![Code Climate](https://codeclimate.com/github/mrtazz/minibashtest/badges/gpa.svg)](https://codeclimate.com/github/mrtazz/minibashtest)\n[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)\n\n## Overview\nThis is the most simple unit testing framework I could come up with. The\nintention here is to serve as an example of how easy it can be to get started\nwith unit testing, even for something like bash that traditionally has less of\na unit testing culture. It's heavily inspired by [minunit][].\n\n## Usage\n\n```bash\n#!/usr/bin/env bash\n\nsource 'minibashtest.sh'\n\nfunction test_one_is_one {\n  assert \"[ 1 -eq 1 ]\" \"failed to assert that 1 equals 1\"\n}\n\nfunction test_one_is_not_two {\n  assert \"[ 1 -neq 2 ]\" \"failed to assert that 1 is not 2\"\n}\n\nrun_test_suite\n```\n\n### Setup/TearDown\nIf you define functions called `setup` or `tear_down`, they will be called\nbefore and after each test function respectively.\n\n## Advanced Testing\nFortunately a lot of people have given unit testing in bash some thoughts in\nthe past. So if you want something more than just basic assertions, check\nthosse out:\n\n- [roundup][]\n- [bats][]\n- [assert.sh][]\n\n[minunit]: http://www.jera.com/techinfo/jtns/jtn002.html\n[roundup]: https://github.com/bmizerany/roundup\n[assert.sh]: https://github.com/lehmannro/assert.sh\n[bats]: https://github.com/sstephenson/bats\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtazz%2Fminibashtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrtazz%2Fminibashtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtazz%2Fminibashtest/lists"}