什么是 gpui-testing?
测试 GPUI 应用程序和组件。在编写测试、测试异步操作、模拟用户输入或调试测试失败时使用。 来源:cnwzhu/gpui-skills。
测试 GPUI 应用程序和组件。在编写测试、测试异步操作、模拟用户输入或调试测试失败时使用。
通过命令行快速安装 gpui-testing AI 技能到你的开发环境
来源:cnwzhu/gpui-skills。
Why: GPUI's scheduler tracks GPUI timers but not smol::Timer, which can cause "nothing left to run" errors in rununtilparked().
| Using smol::Timer | "Nothing left to run" | Use cx.backgroundexecutor.timer() | | Not calling rununtilparked() | Async work doesn't complete | Call before assertions | | Forgetting #[gpui::test] | Test doesn't run properly | Use #[gpui::test] attribute | Not handling errors in async | Test failures unclear | Propagate errors with ? |
| Testing too much at once | Hard to debug failures | Split into smaller tests |
测试 GPUI 应用程序和组件。在编写测试、测试异步操作、模拟用户输入或调试测试失败时使用。 来源:cnwzhu/gpui-skills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/cnwzhu/gpui-skills --skill gpui-testing测试 GPUI 应用程序和组件。在编写测试、测试异步操作、模拟用户输入或调试测试失败时使用。 来源:cnwzhu/gpui-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/cnwzhu/gpui-skills --skill gpui-testing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/cnwzhu/gpui-skills