{"id":19142589,"url":"https://github.com/rbarilani/shunit2-test-runner","last_synced_at":"2025-08-15T19:27:01.551Z","repository":{"id":33223597,"uuid":"36866864","full_name":"rbarilani/shunit2-test-runner","owner":"rbarilani","description":"A **Unix-like** shell command to run shunit2 tests scripts.","archived":false,"fork":false,"pushed_at":"2015-06-07T17:39:19.000Z","size":160,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T19:25:16.784Z","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/rbarilani.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-06-04T11:41:08.000Z","updated_at":"2021-09-11T11:45:33.000Z","dependencies_parsed_at":"2022-07-13T08:51:03.417Z","dependency_job_id":null,"html_url":"https://github.com/rbarilani/shunit2-test-runner","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/rbarilani/shunit2-test-runner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbarilani%2Fshunit2-test-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbarilani%2Fshunit2-test-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbarilani%2Fshunit2-test-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbarilani%2Fshunit2-test-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rbarilani","download_url":"https://codeload.github.com/rbarilani/shunit2-test-runner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbarilani%2Fshunit2-test-runner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270618388,"owners_count":24617216,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"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":[],"created_at":"2024-11-09T07:27:43.302Z","updated_at":"2025-08-15T19:27:01.513Z","avatar_url":"https://github.com/rbarilani.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"rbarilani/shunit2-test-runner\n==============================\n\nA **Unix-like** shell command to run shunit2 tests scripts.\n\n[![Build Status](https://travis-ci.org/rbarilani/shunit2-test-runner.svg)](https://travis-ci.org/rbarilani/shunit2-test-runner)\n\n## Install\n\n### Using git\n\n```\ngit clone https://github.com/rbarilani/shunit2-test-runner.git\n```\n\nThis would install an executable script ```./shunit2-test-runner/src/shunit```.\n\n\n### Using composer\n\nAdds this to your composer.json and run ```composer update rbarilani/shunit2-test-runner```:\n\n```json\n{\n    \"require\": {\n        \"rbarilani/shunit2-test-runner\" : \"dev-master\"\n    },\n    \"repositories\" : [\n        { \"type\":\"git\", \"url\":\"https://github.com/rbarilani/shunit2-test-runner.git\" }\n    ]\n}\n```\n\nThis would install an executable script ```./vendor/bin/shunit```.\n\n### Using npm\n\nAdds this to your package.json and run ```npm install```:\n\n```json\n{\n    \"dependencies\": {\n        \"rbarilani-shunit2-test-runner\" : \"git+https://github.com/rbarilani/shunit2-test-runner.git\"\n    }\n}\n```\n\nThis would install an executable script ```./node_modules/.bin/shunit```.\n\n## Usage\n\n```\nUsage:\n\nshunit [--glob=\u003cglob-pattern\u003e] [--config=\u003cconfig-file\u003e] [-h|--help] [--version]\n\nOptions:\n\n* --glob=\u003cglob-pattern\u003e  : a \u003cglob pattern\u003e to match tests scripts to be run (default: 'src/*_test.sh')\n* --config=\u003cconfig-file\u003e : provides options with a \u003cconfig-file\u003e (default: '.shunitrc')\n* -h or --help           : print this help message\n* --version              : print command version\n```\n\n## Configuration\n\nYou can use a config file to provide options to the command.\nBy default ```shunit``` command search for a ```.shunitrc``` file in the current folder, if found it source that file.\n \nExample:\n\n```bash\n#!/usr/bin/env bash\n# ./.shunitrc\n\nGLOB=\"my-test-folder/*Test.sh\"\n```\n\n## Development\n\n### Tests\n\n#### Install shunit2\n\nInstall [shunit2] manually \n\n```\ncd vendor \u0026\u0026 curl -L \"http://downloads.sourceforge.net/shunit2/shunit2-2.0.3.tgz\" | tar zx ; cd -;\n```\n\nor with the help of composer post install hook\n\n```\ncomposer install\n```\n\n#### Run tests\n\n```\nbash test.sh\n```\n\n[shunit2]: https://code.google.com/p/shunit2/\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbarilani%2Fshunit2-test-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frbarilani%2Fshunit2-test-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbarilani%2Fshunit2-test-runner/lists"}