gherkai
用 Gherkin .feature 写 UI 端到端测试,交给 AI 浏览器引擎(Nova Act 或 Midscene)在云端浏览器里操作页面、判定断言。本包是 gherkai 的命令行入口:解析 .feature、按 tag 分组成可并发的 job、派给引擎执行、汇总每条用例的判定与报告。测试在你自己的 AWS 账户里运行,会产生真实 AWS 费用,金额以你的 AWS 账单为准。
安装
uv tool install gherkai # 命令行本体,需 Python ≥ 3.13
uv tool install 'gherkai[local]' # 附带在本机运行 Nova Act 引擎所需的 worker
npm i -g @gherkai/worker-midscene # 在本机运行 Midscene 引擎所需的 worker,需 Node ≥ 22
Midscene worker 与命令行须是同一个版本:用 gherkai --version 查版本号,再装 npm i -g @gherkai/worker-midscene@<版本号>。
最小用法
export AWS_REGION=us-east-1 # region 必须有出处:--region、环境变量或 profile 配置
gherkai doctor # 自检环境;加 --backend cloud 连带查凭证与云端后端
gherkai plan features/checkout.feature # 用例预检:分组与派发预期,不连云端、不产生费用
gherkai run features/checkout.feature # 在本机起 worker 执行这个 run(浏览器与模型仍在云端);退出码给出判定
gherkai explain <run_id> # 读这个 run 的每步证据,看断言为什么这么判
全部命令与选项以 gherkai --help、gherkai <命令> --help 为准。plan、run、status、explain、doctor 等命令都支持 --json,便于脚本与 CI 解析。
用 AI agent(如 Claude Code、Codex)操作 gherkai 的话,先执行 gherkai skill install 把使用说明装进你的项目,之后直接告诉 agent 要测什么。
文档
- 装什么、要哪些 AWS 前置、第一次怎么完整运行:https://github.com/zhiyanliu/gherkai/blob/HEAD/docs/user-guide/getting-started.md
- 四种组合(执行方式 × 执行后端)、结果在哪、退出码什么意思:https://github.com/zhiyanliu/gherkai/blob/HEAD/docs/user-guide/running-and-results.md
.feature怎么写才能稳定运行:https://github.com/zhiyanliu/gherkai/blob/HEAD/docs/user-guide/writing-features.md- 环境变量与选项总表:https://github.com/zhiyanliu/gherkai/blob/HEAD/docs/user-guide/configuration.md
- 报错了先看哪:https://github.com/zhiyanliu/gherkai/blob/HEAD/docs/user-guide/troubleshooting.md
- 每版变更:https://github.com/zhiyanliu/gherkai/blob/HEAD/CHANGELOG.md
Metadata
Release files for gherkai 1.4.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gherkai-1.4.6.tar.gz | 107.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gherkai-1.4.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 224.7 kB
Release files / gherkai-1.4.6.tar.gz
| Download URL | gherkai-1.4.6.tar.gz |
|---|---|
| Size | 107.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2d365464b65ec04f654c15e2115ded1051837ca105e2e34ef0c7d8030f8f0ff
|
|
BLAKE2b-256 checksum How to use checksums |
c2c43d3e2c3ebe29c20c5f56261a7776680b6ca2206eb0246d572c8aeb6a8b17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency logRelease files / gherkai-1.4.6-py3-none-any.whl
| Download URL | gherkai-1.4.6-py3-none-any.whl |
|---|---|
| Size | 117.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69f4c5a8055cc54ceb7ce3dcb343d88f1e23f5c79f4f020b0af80f4c6c98ac5e
|
|
BLAKE2b-256 checksum How to use checksums |
27a26cccd09382e7998e673e80ae1c4a97e1c97685b491c4eb6ea5a2782e3e5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency log