{"id":17361594,"url":"https://github.com/toddbaert/shellot","last_synced_at":"2026-05-07T00:38:07.065Z","repository":{"id":106860763,"uuid":"559670928","full_name":"toddbaert/shellot","owner":"toddbaert","description":"A gherkin framework for bash","archived":false,"fork":false,"pushed_at":"2022-12-10T17:49:11.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T16:52:29.680Z","etag":null,"topics":["bash","cucumber","gherkin","integration","shell","shell-script","testing"],"latest_commit_sha":null,"homepage":"","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/toddbaert.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":"2022-10-30T20:23:40.000Z","updated_at":"2022-10-31T17:07:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e7d4967-3e66-4643-a55c-01372d1ce6e3","html_url":"https://github.com/toddbaert/shellot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/toddbaert/shellot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddbaert%2Fshellot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddbaert%2Fshellot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddbaert%2Fshellot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddbaert%2Fshellot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toddbaert","download_url":"https://codeload.github.com/toddbaert/shellot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddbaert%2Fshellot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269502573,"owners_count":24427790,"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-08T02:00:09.200Z","response_time":72,"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","cucumber","gherkin","integration","shell","shell-script","testing"],"created_at":"2024-10-15T19:34:18.327Z","updated_at":"2026-05-07T00:38:07.016Z","avatar_url":"https://github.com/toddbaert.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"shellot.png\" width=\"500px;\" \u003e\n\u003c/div\u003e\n\n## What is this?\n\n_shellot_ is a simple gherkin testing framework. It's written in bash, as the tests you write for it are also just bash.\n\nThis is a work in progress so expect frequent improvements!\n\n## How do I use it?\n\nRun it like: `./libexec/shellot -f thing.feature -t thing-test.sh`, where `thing.feature` is a gherkin file and `thing-test.sh` is an implementing test file.\n\nTests are written in bash, and must return 0/1 to indicate success/failure. Tests must be registered by calling the `step` function with their associated gherkin expression as the first parameter, and the test function as the second:\n\n```shell\n#!/usr/bin/env bash\n\nWhen \"([0-9]+) and ([0-9]+) are added\" sum_when\nThen \"the result is ([0-9]+)\" sum_then\n\ndeclare sum\n\nfunction sum_when () {\n  sum=$(( $1 + $2 ))\n}\n\nfunction sum_then () {\n  if [[ $1 -eq $sum ]]; then\n    return 0\n  else\n    return 1\n  fi\n}\n```\n\nSamples can be found under the `samples/` folder.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddbaert%2Fshellot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoddbaert%2Fshellot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddbaert%2Fshellot/lists"}