Testing React Native apps
-
Run unit and UI tests for React Native apps by either npm test or yarn test. The Steps run the
tests
script in thescripts
object of your package. -
Perform end-to-end testing with Detox, a gray box end-to-end tests and automation library for mobile apps built with React Native.
You can also use Bitrise's device testing solution, using Firebase Test Labs, to run device tests on both the iOS and Android apps of a React Native project: Running device tests with Firebase for multiplatform apps.
In this section:
A Step is a block of script execution that encapsulates a build task on Bitrise: the code to perform that task, the inputs and parameters you can define for the task, and the outputs the task generates.