在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):wix/Detox开源软件地址(OpenSource Url):https://github.com/wix/Detox开源编程语言(OpenSource Language):JavaScript 66.3%开源软件介绍(OpenSource Introduction):DetoxGray box end-to-end testing and automation library for mobile apps. 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: describe('Login flow', () => {
it('should login successfully', async () => {
await device.reloadReactNative();
await element(by.id('email')).typeText('[email protected]');
await element(by.id('password')).typeText('123456');
await element(by.text('Login')).tap();
await expect(element(by.text('Welcome'))).toBeVisible();
await expect(element(by.id('email'))).toNotExist();
});
}); AboutHigh 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.
Supported VersionsEnvironment
React NativeDetox is built from the ground up to support React Native projects as well as pure native ones. The following React Native versions have been tested:
Future versions are most likely supported, but have not been tested yet. Please open issues if you find specific issues with newer React Native versions. Get Started with DetoxRead the Getting Started Guide to get Detox running on your app in less than 10 minutes. Documents SiteExplore further about using Detox from our new website. Core PrinciplesWe believe that the only way to address the core difficulties with mobile end-to-end testing is by rethinking some of the principles of the entire approach. See what Detox does differently. Contributing to DetoxDetox has been open-source from the first commit. If you’re interested in helping out with our roadmap, please see issues tagged with the label. If you have encountered a bug or would like to suggest a new feature, please open an issue. Dive into Detox core by reading the Detox Contribution Guide. License
Non-English Resources (Community) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论