{"id":18872772,"url":"https://github.com/survivorbat/huhtest","last_synced_at":"2025-09-04T02:31:41.639Z","repository":{"id":249557592,"uuid":"827958777","full_name":"survivorbat/huhtest","owner":"survivorbat","description":"huhtest is a work-in-progress test library for your huh forms","archived":false,"fork":false,"pushed_at":"2025-03-10T17:46:38.000Z","size":24,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-31T03:29:42.940Z","etag":null,"topics":["cli","cobra","command","go","golang","huh","huhtest","stdin","stdout","test","unit","unittest"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/survivorbat/huhtest","language":"Go","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/survivorbat.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,"zenodo":null}},"created_at":"2024-07-12T18:52:22.000Z","updated_at":"2025-04-12T01:20:20.000Z","dependencies_parsed_at":"2024-11-08T05:33:48.028Z","dependency_job_id":"60eceeb4-bd07-470e-8ed4-edc27be184e4","html_url":"https://github.com/survivorbat/huhtest","commit_stats":null,"previous_names":["survivorbat/huhtest"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/survivorbat/huhtest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/survivorbat%2Fhuhtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/survivorbat%2Fhuhtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/survivorbat%2Fhuhtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/survivorbat%2Fhuhtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/survivorbat","download_url":"https://codeload.github.com/survivorbat/huhtest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/survivorbat%2Fhuhtest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273541938,"owners_count":25124062,"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-09-04T02:00:08.968Z","response_time":61,"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":["cli","cobra","command","go","golang","huh","huhtest","stdin","stdout","test","unit","unittest"],"created_at":"2024-11-08T05:32:12.268Z","updated_at":"2025-09-04T02:31:41.386Z","avatar_url":"https://github.com/survivorbat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤔 Huh Test\n\n`huhtest` is a work-in-progress test library for your [huh](https://github.com/charmbracelet/huh) forms.\nIf you're - for some reason - eager to test your huh-based interactive CLI applications then you've come to\nthe right place.\nIt works by matching messages in a form's output (stdout) and then sending pre-programmed text to the form's input (stdin).\n\nIt's not 100% bug-free, as some combinations of groups and selects seem to have off-by-one errors.\n\n## ⬇️ Installation\n\n`go get github.com/survivorbat/huhtest`\n\n## 📋 Usage\n\nCheck out [this example](./examples_test.go)\n\n## 🧪 Testing\n\nTo make sure this thing actually works, we have both unit tests and integration tests, the former\nchecks the output of `huhtest` directly, the latter actually uses `huh` to check whether the inputs\nare properly processed.\n\n## 🐞 Debugging\n\nThere's a `.Debug()` method available that enabled extra logging in the `Responser`. If you\nencounter a bug or are suspicious about something not working, turn it on to see exactly what it's doing.\n\n## 🔭 Plans\n\n- Custom keymap support for select fields\n- Select fields should preferably be selected by output text and not index\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurvivorbat%2Fhuhtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurvivorbat%2Fhuhtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurvivorbat%2Fhuhtest/lists"}