https://github.com/codingitwrong/rnclitestingsandbox
Example React Native CLI project set up to play around with Detox and RNTL testing
https://github.com/codingitwrong/rnclitestingsandbox
Last synced: 5 months ago
JSON representation
Example React Native CLI project set up to play around with Detox and RNTL testing
- Host: GitHub
- URL: https://github.com/codingitwrong/rnclitestingsandbox
- Owner: CodingItWrong
- Archived: true
- Created: 2023-03-13T11:16:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-01T11:15:39.000Z (over 1 year ago)
- Last Synced: 2025-03-23T02:15:51.729Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 3.29 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Native CLI Testing Sandbox
This is an example React Native CLI project set up to play around with Detox and RNTL testing. There is a sample test for each that is configured to run locally and on GitHub Actions.
See the [history of the GitHub Actions runs](https://github.com/CodingItWrong/RNCLITestingSandbox/actions).
## Requirements
- [Node](https://nodejs.org)
- [Yarn 1.x](https://classic.yarnpkg.com/lang/en/)
- [Ruby](https://www.ruby-lang.org/)
- [Cocoapods](https://cocoapods.org/)
- [Android Studio](https://developer.android.com/studio) and/or [Xcode](https://developer.apple.com/xcode/)
## Installation
- Clone the repo
- Run `yarn install`
- Run `cd ios && pod install`
Dependencies are locked with `yarn.lock`; please use `yarn` rather than `npm` for installing.
## Running
- In one terminal, run `yarn start`
- In another terminal, run `yarn android` or `yarn ios`
## E2E Tests
- Run `detox build -c ios.sim.debug` (only needs to be run once per native code changes)
- Run `detox test -c ios.sim.debug`
## License
MIT