{"id":15733147,"url":"https://github.com/vaab/sunit","last_synced_at":"2026-01-26T04:32:12.700Z","repository":{"id":66047958,"uuid":"170302649","full_name":"vaab/sunit","owner":"vaab","description":"Shell Unit Tests","archived":false,"fork":false,"pushed_at":"2024-06-19T09:35:34.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T11:32:44.208Z","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":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vaab.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-12T10:56:55.000Z","updated_at":"2024-06-19T09:35:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"f61726be-90f8-4064-9802-18106d770190","html_url":"https://github.com/vaab/sunit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vaab/sunit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaab%2Fsunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaab%2Fsunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaab%2Fsunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaab%2Fsunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaab","download_url":"https://codeload.github.com/vaab/sunit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaab%2Fsunit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28766886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-04T00:41:15.261Z","updated_at":"2026-01-26T04:32:12.680Z","avatar_url":"https://github.com/vaab.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====\nSUnit\n=====\n\nShell Unit Test - Quick and Dirty\n\n\nFeature\n=======\n\n- Quick way to write unit test in shell\n\n- Fancy ANSI colors printings\n\n- Carefull attention to profiling test (saving times of tests runs, comparisons)\n\n- Dirty means there's no real limit to the tinkering you might want\n  to introduce around the very few syntax token proposed by sunit.\n\n- Slim because it has no dependencies to other project, one file, in bash\n\n- Faint doctest feeling\n\n\nCurrent Status\n==============\n\nEarly Alpha:\n- no documentation\n- basic syntax/command line usage might change drastically in the future\n- no test of the current testing system\n- not completely happy with metrics and diffing, scales might change as\n  some outputs.\n- No proper github releases\n\n\nInstallation\n============\n\nNo installation method provided, just copy the file in your path.\n\n\nUsage\n=====\n\n\nQuickStart\n----------\n\nCreate a directory to store test files::\n\n    $ cat \u003c\u003cEOF \u003e foo   ## First test file\n\n    try 'echo -n \"hello world\"'\n      noerror\n      is out \"hello world\"\n\n    EOF\n\nNote that indentation is not required before ``noerror`` and ``is out``.\n\n``noerror`` and ``is`` are bash functions. ``noerror`` a shortcut for\n2 ``is`` commands: ``is errlvl 0`` and ``is err \"\"``.\n\nAll assertions are managed through the ``is`` bash functions. Basic\nsyntax of ``is`` function is::\n\n    is {errlvl,err,out} [COMPARISON_METHOD] VALUE [OUTCOME_MODIFIERS...]\n\nFor instance, here::\n\n    is out \"hello world\"\n\nChecks if standard output of last ``try`` command was exactly ``hello\nworld``.\n\nLet's run the test::\n\n    $ sunit foo\n    - foo_1                                    3 asserts         [  -.001 s ]\n    3 assertions passed. Code took .003 s (-6.9 dB).\n\n\nCommand line\n------------\n\nTBD\n\nSyntax token\n------------\n\n\n    try CODE [MESSAGE]\n    is {errlvl,err,out} [COMPARISON_METHOD] VALUE [OUTCOME_MODIFIERS...]\n\n\nContributing\n============\n\nAny suggestions or issues are welcome. Push requests are very welcome,\nplease check out the guidelines.\n\n\nPush Request Guidelines\n-----------------------\n\nYou can send any code. I'll look at it and will integrate it myself in\nthe code base and leave you as the author. This process can take time and\nit'll take less time if you follow the following guidelines:\n\n- Try to stick to 80 columns wide.\n- separate your commits per smallest concern.\n- each commit should pass the tests (to allow easy bisect)\n- each functionality/bugfix commit should contain the code, tests,\n  and doc.\n- prior minor commit with typographic or code cosmetic changes are\n  very welcome. These should be tagged in their commit summary with\n  ``!minor``.\n- the commit message should follow gitchangelog rules (check the git\n  log to get examples)\n- if the commit fixes an issue or finished the implementation of a\n  feature, please mention it in the summary.\n\nIf you have some questions about guidelines which is not answered here,\nplease check the current ``git log``, you might find previous commit that\nshows you how to deal with your issue.\n\n\nLicense\n=======\n\nCopyright (c) 2012-2019 Valentin Lab.\n\nLicensed under the `BSD License`_.\n\n.. _BSD License: http://raw.github.com/0k/sunit/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaab%2Fsunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaab%2Fsunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaab%2Fsunit/lists"}