Skip to content

Commit

Permalink
fix: test app is now created by the cli and is no longer packaged
Browse files Browse the repository at this point in the history
  • Loading branch information
acostalima committed Jan 6, 2021
1 parent 7594d3b commit 6457d84
Show file tree
Hide file tree
Showing 64 changed files with 657 additions and 6,658 deletions.
48 changes: 22 additions & 26 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ jobs:
run: |
npm run lint
- name: Cache Android build
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-
# - name: Cache Android build
# uses: actions/cache@v2
# with:
# path: |
# ~/.gradle/caches
# ~/.gradle/wrapper
# key: ${{ runner.os }}-gradle-${{ hashFiles('$HOME/.npm/rn-test-app/android/**/*.gradle*') }}-${{ hashFiles('$HOME/.npm/rn-test-app/android/gradle/wrapper/gradle-wrapper.properties') }}
# restore-keys: ${{ runner.os }}-gradle-

- name: Run Android tests
uses: reactivecircus/android-emulator-runner@v2
Expand Down Expand Up @@ -98,18 +98,14 @@ jobs:
run: |
npm run lint
- name: Cache pods and repositories
uses: actions/cache@v2
with:
path: |
~/Library/Caches/CocoaPods
~/.cocoapods
key: ${{ runner.os }}-cocoapods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: ${{ runner.os }}-cocoapods-

- name: Install Pods
run: |
npm run pods
# - name: Cache pods and repositories
# uses: actions/cache@v2
# with:
# path: |
# ~/Library/Caches/CocoaPods
# ~/.cocoapods
# key: ${{ runner.os }}-cocoapods-${{ hashFiles('$HOME/.npm/rn-test-app/ios/Podfile.lock') }}
# restore-keys: ${{ runner.os }}-cocoapods-

# - name: Set up ${{ matrix.apple-runtime }} runtime
# run: |
Expand All @@ -129,12 +125,12 @@ jobs:
echo "IOS_SIMULATOR=$SIMULATOR_ID" >> $GITHUB_ENV
xcrun simctl boot $SIMULATOR_ID &
- name: Cache iOS build
uses: actions/cache@v2
with:
path: ~/Library/Developer/Xcode/DerivedData/Test-*
key: ${{ runner.os }}-xcodebuild-${{ hashFiles('ios/Test*/**') }}
restore-keys: ${{ runner.os }}-xcodebuild-
# - name: Cache iOS build
# uses: actions/cache@v2
# with:
# path: ~/Library/Developer/Xcode/DerivedData/Test-*
# key: ${{ runner.os }}-xcodebuild-${{ hashFiles('$HOME/.npm/rn-test-app/ios/Test*/**') }}
# restore-keys: ${{ runner.os }}-xcodebuild-

- name: Run iOS tests
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ ios/Pods/

# Jest
coverage/

1 change: 0 additions & 1 deletion .watchmanconfig

This file was deleted.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ $ npm install -D react-native-test-runner
- No coverage.
- Only iOS simulators and Android emulators are supported.
- JavaScriptCore (JSC) engine only on both Android and iOS.

- No TypeScript (TS) support.
- Not yet possible to run tests against native modules.
## Usage

```
Expand All @@ -38,6 +39,8 @@ Options
--emulator, -e Android emulator to run the test suites on.
--metroPort, -p Port on which Metro's server should listen to. Default: 8081.
--cwd Current directory. Default: process.cwd().
--rn React Native version to test against. Default: 0.63.4.
--app Absolute path to the test app. Default: ~/.npm/rn-test-app.
Examples
# Run tests on iPhone 11 simulator with iOS version 14.1
Expand Down
220 changes: 0 additions & 220 deletions android/app/build.gradle

This file was deleted.

19 changes: 0 additions & 19 deletions android/app/build_defs.bzl

This file was deleted.

Binary file removed android/app/debug.keystore
Binary file not shown.
10 changes: 0 additions & 10 deletions android/app/proguard-rules.pro

This file was deleted.

8 changes: 0 additions & 8 deletions android/app/src/debug/AndroidManifest.xml

This file was deleted.

Loading

0 comments on commit 6457d84

Please sign in to comment.