@tigerhill/cli
v0.2.6
Published
TigerHill command line interface
Downloads
662
Readme
@tigerhill/cli
TigerHill 命令行工具,提供测试自动化的完整工作流。
安装
pnpm add -g @tigerhill/cli或在项目中使用:
pnpm add @tigerhill/cli命令
th init # 初始化测试工作区
th init [name] # 初始化测试工作区
th gen --case <file> # 从 Case 生成 Playwright 脚本
th run [pattern] # 运行测试
th repair [script] # 修复失败的测试
th role login <name> # 角色登录并保存 storageState
th navigator # 管理 Navigator (site-map.yaml)
th case # 管理 Case 文件
th skills # 管理 Skills 文档配置
tigerhill.config.yaml:项目配置.tigerhill.local.json:本地配置(API key 等,已 gitignore)env/*.env.yaml:环境配置
环境变量
TH_WORKSPACE:工作区目录TH_STORAGE_STATE:storageState 文件路径TH_ROLE:当前角色TH_USERNAME/TH_PASSWORD:凭据(用于自动登录)
