.. | ||
__tests__ | ||
.bundle | ||
android | ||
e2e | ||
ios | ||
patches | ||
scripts | ||
src | ||
.buckconfig | ||
.detoxrc.js | ||
.eslintrc.js | ||
.flowconfig | ||
.gitignore | ||
.nvmrc | ||
.prettierrc.js | ||
.ruby-version | ||
.watchmanconfig | ||
app.json | ||
babel.config.js | ||
Gemfile | ||
Gemfile.lock | ||
index.js | ||
metro.config.js | ||
package.json | ||
README.md | ||
update.json | ||
yarn.lock |
react-native-android-detox
React Native Android Detox. The project has already been patched with the additional Android configuration.
Prerequisites
Follow the environment setup.
Install
Clone the repository:
git clone https://github.com/remarkablemark/react-native-android-detox.git
cd react-native-android-detox
Install the dependencies:
yarn
Build
Android (Debug)
Build the Android debug app:
yarn detox build --configuration android.emu.debug
Android (Release)
Build the Android release app:
yarn detox build --configuration android.emu.release
Test
Android (Debug)
Start the app:
yarn start
Run the test:
yarn detox test --configuration android.emu.debug
Android (Release)
Run the test:
yarn detox test --configuration android.emu.release