{"id":13494656,"url":"https://github.com/pahaz/bashtest","last_synced_at":"2025-07-01T02:38:28.365Z","repository":{"id":57414095,"uuid":"63976462","full_name":"pahaz/bashtest","owner":"pahaz","description":"BashTest is a UNIX command-line tool for testing your bash/sh scripts","archived":false,"fork":false,"pushed_at":"2019-05-12T16:20:54.000Z","size":27,"stargazers_count":46,"open_issues_count":6,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-14T02:48:22.121Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/pahaz.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2016-07-22T18:55:49.000Z","updated_at":"2024-12-30T23:38:18.000Z","dependencies_parsed_at":"2022-08-26T20:32:07.175Z","dependency_job_id":null,"html_url":"https://github.com/pahaz/bashtest","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/pahaz/bashtest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pahaz%2Fbashtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pahaz%2Fbashtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pahaz%2Fbashtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pahaz%2Fbashtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pahaz","download_url":"https://codeload.github.com/pahaz/bashtest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pahaz%2Fbashtest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262885259,"owners_count":23379547,"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-07-31T19:01:26.913Z","updated_at":"2025-07-01T02:38:28.333Z","avatar_url":"https://github.com/pahaz.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"|CircleCI| |version|\n\n|pyversions| |license|\n\n**Author**: `Pahaz Blinov`_\n\n**Repo**: https://github.com/pahaz/bashtest/\n\nBashTest is a UNIX command-line tool for the testing bash/shell utilites.\n\nThis is a simplest way to write simple bash tests.\n\n**requirements**: Python2 or Python3\n\n**keywords**: bash unittest, unittesting, bash tesing, sh unit testing\n\nInstallation\n============\n\n`bashtest`_ is on PyPI, so simply run:\n\n::\n\n    pip install bashtest\n\nor ::\n\n    easy_install bashtest\n\nto have it installed in your environment.\n\nFor installing from source, clone the\n`repo \u003chttps://github.com/pahaz/bashtest\u003e`_ and run::\n\n    python setup.py install\n\nIf you don`t have **pip** you can `install it \u003chttps://pip.pypa.io/en/stable/installing/#installation\u003e`_\n\nTypical use case\n================\n\nYou have a command line util or bash/sh script and you want to test it.\n\nFor example, we want to test **ls** util.\n\nAll of we need is to create text file with execution log.\n\n**./test_ls.bashtest** ::\n\n    $ ls ./testsuit/list-directory\n    file1\n    file2.txt\n    file3.py\n    file4.sh\n\nRun this tests ::\n\n    $ bashtest test_ls.bashtest\n    1 items passed all tests:\n       1 tests in test_ls.bashtest\n    1 tests in 1 items.\n    1 passed and 0 failed.\n    Test passed.\n\nTest README examples\n====================\n\nYou have a some open source project like this. And of course, as in any good\nopen source project, you have examples. You can automatically check this\nexamples. Just add **bashtest README.rst** in your CI tests.\n\nMore examples\n=============\n\nYou can finde some examples in this project. Please check **test_*.bashtest**\nfiles\n\nchangelog\n=========\n\n** 0.0.8 **\n - add ``#skipbashtest`` support\n\n** 0.0.7 **\n - fix! remove ugly and useless options\n - feat! Test README.rst `#4 \u003chttps://github.com/pahaz/bashtest/issues/4\u003e`_\n - feat! find \\*.bashtest by default `#3 \u003chttps://github.com/pahaz/bashtest/issues/3\u003e`_\n\n** 0.0.6 **\n - fix! bad command escaping bug `#5 \u003chttps://github.com/pahaz/bashtest/issues/5\u003e`_\n\nHELP\n----\n\n::\n\n   $ bashtest --help\n   usage: bashtest [-h] [--exitcode] [-v] [-q] [--debug] [--version]\n                   [file [file ...]]\n\n   BashTest is a UNIX command-line tool for running text-based bash tests.\n\n   positional arguments:\n     file           Input file (by default uses *.bashtest)\n\n   optional arguments:\n     -h, --help     show this help message and exit\n     --exitcode     Print exitcode after command end of output\n     -v, --verbose  Verbose output mode\n     -q, --quiet    Silent output mode\n     --debug        Print the debug information\n     --version      Print the version string\n\n\n.. _Pahaz Blinov: https://github.com/pahaz/\n.. _bashtest: https://pypi.python.org/pypi/bashtest\n.. |CircleCI| image:: https://circleci.com/gh/pahaz/bashtest.svg?style=svg\n   :target: https://circleci.com/gh/pahaz/bashtest\n.. |DwnMonth| image:: https://img.shields.io/pypi/dm/bashtest.svg\n.. |DwnWeek| image:: https://img.shields.io/pypi/dw/bashtest.svg\n.. |DwnDay| image:: https://img.shields.io/pypi/dd/bashtest.svg\n.. |pyversions| image:: https://img.shields.io/pypi/pyversions/bashtest.svg\n.. |version| image:: https://img.shields.io/pypi/v/bashtest.svg\n   :target: `bashtest`_\n.. |license| image::  https://img.shields.io/pypi/l/bashtest.svg\n   :target: https://github.com/pahaz/bashtest/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpahaz%2Fbashtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpahaz%2Fbashtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpahaz%2Fbashtest/lists"}