About detox
This skill helps developers write and debug Detox end-to-end tests for React Native apps, covering environment setup, assertions, and CI workflows. It also addresses stable element selection, retaining failure artifacts, and handling sensitive actions through environment variables.
Key features
- 01Set up Detox and the test environment
- 02Write tests with element selectors and assertions
- 03Handle asynchronous waits and synchronization
- 04Configure CI build and test steps
- 05Retain artifacts such as logs and screenshots
Use cases
- 01Write end-to-end tests for a React Native app
- 02Debug test failures on simulators
- 03Integrate Detox tests into a CI workflow
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ full-stack-skills/ testing-skills --skill detoxAfter installing, type/detoxin Claude Code to confirm it loaded.
Bundled filesagents/openai.yamlLICENSE.txt
Details
From the project READMEWhen to use this skill
Use this skill whenever the user wants to:
- 为 React Native 应用编写或调试 Detox E2E 测试
- 配置构建、启动模拟器与断言;CI 集成
How to use this skill
- 环境:安装 Detox、配置 .detoxrc;iOS 需 Xcode 与模拟器;Android 需 SDK 与模拟器。
- 用例:element(by.id)、tap、typeText、expect;异步等待与同步。
- CI:build 与 test 步骤;Artifacts 保存日志与截图。
Best Practices
- 用 testID 稳定定位;避免依赖文本与耗时动画。
- 构建与设备配置一致;失败时保留 artifacts。
- 敏感操作用环境变量;并行与重试策略。
Keywords
detox, React Native, E2E, 端到端测试
Comments
Markdown supported