·textual-testing
</>

textual-testing

使用内置测试框架测试文本 TUI 应用程序。涵盖使用 App.run_test() 进行无头模式测试、完整的 Pilot API(鼠标、键盘、计时、动画)、小部件查询和工作人员管理。使用场合:为 TUI 小部件编写测试、测试用户交互(单击、按键、悬停)、验证小部件状态、测试事件处理或运行集成测试。功能文本测试的主要技能。

3安装·0热度·@dawiddutoit

安装

$npx skills add https://github.com/dawiddutoit/custom-claude --skill textual-testing

如何安装 textual-testing

通过命令行快速安装 textual-testing AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/dawiddutoit/custom-claude --skill textual-testing
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:dawiddutoit/custom-claude。

SKILL.md

查看原文

Functional testing for Textual applications using App.runtest() and the Pilot class.

Run app in headless mode (no terminal output, all other behavior identical):

| Assertion fails before update | Add await pilot.pause() after interactions | | Worker result not available | Use await pilot.app.workers.waitforcomplete() | | Animation state varies | Use await pilot.waitforanimation() | | Missing async def | All test functions must be async def | | Missing await | All pilot methods are async and need await |

使用内置测试框架测试文本 TUI 应用程序。涵盖使用 App.run_test() 进行无头模式测试、完整的 Pilot API(鼠标、键盘、计时、动画)、小部件查询和工作人员管理。使用场合:为 TUI 小部件编写测试、测试用户交互(单击、按键、悬停)、验证小部件状态、测试事件处理或运行集成测试。功能文本测试的主要技能。 来源:dawiddutoit/custom-claude。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/dawiddutoit/custom-claude --skill textual-testing
分类
</>开发工具
认证
收录时间
2026-02-25
更新时间
2026-03-10

Browse more skills from dawiddutoit/custom-claude

快速解答

什么是 textual-testing?

使用内置测试框架测试文本 TUI 应用程序。涵盖使用 App.run_test() 进行无头模式测试、完整的 Pilot API(鼠标、键盘、计时、动画)、小部件查询和工作人员管理。使用场合:为 TUI 小部件编写测试、测试用户交互(单击、按键、悬停)、验证小部件状态、测试事件处理或运行集成测试。功能文本测试的主要技能。 来源:dawiddutoit/custom-claude。

如何安装 textual-testing?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/dawiddutoit/custom-claude --skill textual-testing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/dawiddutoit/custom-claude