12,055
Stars
1,903
Forks
347
Watchers
191
Open Issues
MIT
许可证
JavaScript
语言
2016-06-15
创建时间
2026-11-02
最近更新
项目能做什么
面向移动应用的灰盒端到端自动化测试框架。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<!-- markdownlint-configure-file { "first-line-heading": 0 } -->
[](https://stand-with-ukraine.pp.ua)
<p align="center">
<img alt="Detox" width=380 src="https://raw.githubusercontent.com/wix/Detox/master/docs/img/DetoxLogo.png"/>
</p>
<h1 align="center">
Detox
</h1>
<p align="center">
<b>Gray box end-to-end testing and automation framework for mobile apps.</b>
</p>
<p align="center">
<img alt="Demo" src="docs/img/Detox.gif"/>
</p>
<h1></h1>
<img src="https://user-images.githubusercontent.com/1962469/89655670-1c235c80-d8d3-11ea-9320-0f865767ef5d.png" alt="" height=24 width=1> [](https://www.npmjs.com/package/detox) [](https://www.npmjs.com/package/detox) [](https://buildkite.com/wix-mobile-oss/detox) [](https://coveralls.io/github/wix/Detox?branch=master) [](LICENSE) [](https://wix.github.io/Detox/docs/contributing) [](https://discord.gg/CkD5QKheF5) [](https://twitter.com/detoxe2e)
## What Does a Detox Test Look Like?
This is a test for a login screen, it runs on a device/simulator like an actual user:
```js
describe('Login flow', () => {
beforeEach(async () => {
await device.reloadReactNative();
});
it('should login successfully', async () => {
await element(by.id('email')).typeText('john@example.com');
await element(by.id('password')).typeText('123456');
const loginButton = element(by.text('Login'));
await loginButton.tap();
await expect(loginButton).not.toExist();
await expect(element(by.label('Welcome'))).toBeVisible();
});
});
```
[Get started with Detox now!](https://wix.github.io/Detox/docs/introduction/getting-started)
## About
High velocity native mobile development requires us to adopt continuous integration workflows, which means our reliance on manual QA has to drop significantly. Detox tests your mobile app while it’s running in a real device/simulator, interacting with it just like a real user.
The most difficult part of automated testing on mobile is the tip of the testing pyramid - E2E. The core problem with E2E tests is flakiness - tests are usually not deterministic. We believe the only way to tackle flakiness head on is by moving from black box testing to gray box testing. That’s where Detox comes into play.
- **Cross Pla
阅读完整原文
商业机会分析 AI 生成
Detox 测试观测与 Flaky 智能分析 SaaS
| 产品构想 | 无需自建设备农场,仅通过收集 Detox 运行产生的日志、Traces、截屏与视频,提供 Flaky 用例检测、性能瓶颈分析和自动化重试策略的云端看板。 |
| 核心功能 | Detox 测试日志与视频集中托管、Flaky 用例自动识别与打标、执行耗时与瓶颈归因、Slack/GitHub 状态即时告警集成 |
| 目标用户 | 使用 Detox 的中大型 React Native 研发团队、QA 工程师 |
| 难度/周期 | 中等 · 2 - 3 个月 · 成本:极低(主要是常规 Web 后端与对象存储成本) |
| 收费模式 | 按月度上报测试结果用例量阶梯订阅(SaaS 模式) |
| 竞争风险 | 开源社区可能出现轻量替代报告插件;用户需信任将测试产物上传至第三方 |
| 依据 | 已验证事实 |
Detox Studio: 移动端可视化测试录制与代码生成器
| 产品构想 | 开发一款桌面端工具,连接 iOS/Android 模拟器,通过可视化点击和手势操作直接生成符合最佳实践的 Detox JS/TS 测试代码。 |
| 核心功能 | 模拟器交互录制、自动生成稳健的选择器(testID 推荐与检查)、一键生成 Detox 规范代码、断言可视化配置 |
| 目标用户 | 业务线移动端开发者、测试工程师、缺乏原生测试代码编写经验的初级开发者 |
| 难度/周期 | 较高 · 3 - 5 个月 · 成本:低(客户端软件,仅需基础分发与验证服务器) |
| 收费模式 | 按座位数授权售卖桌面客户端 Pro 版或团队版年费 |
| 竞争风险 | React Native 底层架构调整导致元素树抓取机制失效;维护跨平台桌面端投入大 |
| 依据 | 尚需验证的假设 |
托管式 Detox 专用 CI 加速与执行网关
| 产品构想 | 针对 Detox 测试专门优化的托管式运行服务,提供预热好的 iOS 模拟器和 Android 模拟器容器,通过智能分片缩短 CI 运行时间。 |
| 核心功能 | 预热模拟器秒级拉起、Detox 自动化分片并行执行、缓存加速、与 GitHub Actions/GitLab CI 深度集成 |
| 目标用户 | CI/CD 耗时严重的移动端团队、追求发布频率的技术型初创团队 |
| 难度/周期 | 极高 · 6 个月以上 · 成本:高(需要采购/租用大量高性能 macOS 裸金属服务器及 Android 虚拟化算力) |
| 收费模式 | 按并发数与运行分钟数计费(按需计费或月度套餐) |
| 竞争风险 | 重资产模式,基础设施维护成本高,直接面临 AWS Device Farm、BrowserStack 等巨头竞争 |
| 依据 | 数据支持的判断 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| morluto/rea | 中文介绍暂未生成 Reverse engineer anything with agents, from app behavior dow |
449,583 | TypeScript |
| flutter/flutter | 中文介绍暂未生成 Flutter makes it easy and fast to build beautiful apps for m |
181,109 | Dart |
| Genymobile/scrcpy | 中文介绍暂未生成 Display and control your Android device |
154,505 | C |
| rustdesk/rustdesk | 中文介绍暂未生成 An open-source remote desktop application designed for self- |
128,917 | Rust |
| react/react-native | 中文介绍暂未生成 A framework for building native applications using React |
126,896 | C++ |
| Hack-with-Github/Awesome-Hacking | 中文介绍暂未生成 A collection of various awesome lists for hackers, pentester |
125,180 | - |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2016-06-15,近 30 天仍在推送,发布过 100 个 Release |
| 社区活跃 | Star 12,055 / Fork 1,903 / Issue 191(数据支持,可自行核实) |
| 许可证 | MIT |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/wix/Detox.git cd Detox # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。