diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c618ee7978..608172ad09 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -125,9 +125,12 @@ The project has a Detox powered end-to-end testing app located in `/tests`. To run end-to-end tests for `Android`, please run: - `yarn tests:android:build` - builds `Android` test application. + - Note: for Windows you will need `yarn tests:android:build:windows` - `yarn tests:packager:jet-reset-cache` - runs JavaScript bundler. - `yarn tests:emulator:start` - runs Firestore emulator for Firestore tests. + - Note: for Windows you will need `yarn tests:emulator:start:windows` - `yarn tests:android:test` - runs tests using Detox library. Tests for each package can be found in the `e2e` directory (i.e. `[PACKAGE]/e2e/*.e2e.js`) + - Note: for Windows you will need `yarn tests:android:test:windows` To run end-to-end tests for `iOS`, please run: diff --git a/package.json b/package.json index f2cf05d40b..2f93fb1505 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "tests:android:build:windows": "cd tests && yarn detox build --configuration android.emu.debug.windows", "tests:android:build-release": "cd tests && yarn detox build --configuration android.emu.release", "tests:android:test": "yarn tests:android:emulator:forward && cd tests && yarn detox test --configuration android.emu.debug", + "tests:android:test:windows": "cd tests && yarn detox test --configuration android.emu.debug", "tests:android:test:debug": "yarn tests:android:emulator:forward && cd tests && yarn detox test --configuration android.emu.debug --inspect", "tests:android:test-reuse": "yarn tests:android:emulator:forward && cd tests && yarn detox test --configuration android.emu.debug --reuse", "tests:android:test-cover": "yarn tests:android:emulator:forward && cd tests && ./node_modules/.bin/nyc yarn detox test --configuration android.emu.debug",