Company
Date Published
Author
Max Lynch
Word count
1720
Language
English
Hacker News points
None

Summary

In an effort to enhance end-to-end testing for Ionic and Capacitor/Cordova apps, Ionic has introduced a reference app with built-in testing capabilities using WebdriverIO and Appium, regarded as the best stack for building Web Native tests. This initiative aims to address the challenges teams face in creating robust tests, which often leads them to either avoid testing their native apps or use inadequate web-only solutions. The reference app employs the Page Object Pattern and offers a development mode for rapid test development in Chrome, along with commands for building native binaries for iOS and Android. It also includes Ionic-specific test helpers to facilitate interaction with core UI components. Ionic's long-term plan involves developing a library and CLI tool for a streamlined testing experience and integrating cloud testing through Ionic's Appflow platform, addressing the need for a solution that covers both native and web apps, unlike other tools such as Cypress or XCUITest, which are either platform-specific or web-focused. The reference app is available as an alpha release to gather community feedback and is part of a broader effort to foster a stronger testing culture within the Ionic community.