-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,300 additions
and
1,129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"testRunner": "jest", | ||
"runnerConfig": "e2e/config.json", | ||
"skipLegacyWorkersInjection": true, | ||
"apps": { | ||
"android": { | ||
"type": "android.apk", | ||
"binaryPath": "android/app/build/outputs/apk/unsigned/debug/app-unsigned-debug.apk" | ||
} | ||
}, | ||
"configurations": { | ||
"android": { | ||
"device": "emulator", | ||
"app": "android" | ||
}, | ||
"android.emu.debug": { | ||
"binaryPath": "android/app/build/outputs/apk/unsigned/debug/app-unsigned-debug.apk", | ||
"build": "cd android && ./gradlew assembleUnsignedDebug assembleAndroidTest -DtestBuildType=debug && cd ..", | ||
"type": "android.emulator", | ||
"name": "emu" | ||
}, | ||
"android.emu.release": { | ||
"binaryPath": "android/app/build/outputs/apk/unsigned/debug/app-unsigned-release.apk", | ||
"build": "cd android && ./gradlew assembleUnsignedRelease assembleAndroidTest -DtestBuildType=release && cd ..", | ||
"type": "android.emulator" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
nodejs 16.13.1 | ||
nodejs 16.17.0 | ||
java openjdk-15.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"maxWorkers": 1, | ||
"testEnvironment": "./environment", | ||
"testRunner": "jest-circus/runner", | ||
"testTimeout": 120000, | ||
"testRegex": "\\.e2e\\.js$", | ||
"reporters": ["detox/runners/jest/streamlineReporter"], | ||
"verbose": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const { DetoxCircusEnvironment, SpecReporter, WorkerAssignReporter } = require('detox/runners/jest-circus') | ||
|
||
class CustomDetoxEnvironment extends DetoxCircusEnvironment { | ||
constructor(config, context) { | ||
super(config, context) | ||
|
||
// Can be safely removed, if you are content with the default value (=300000ms) | ||
this.initTimeout = 300000 | ||
|
||
// This takes care of generating status logs on a per-spec basis. By default, Jest only reports at file-level. | ||
// This is strictly optional. | ||
this.registerListeners({ | ||
SpecReporter, | ||
WorkerAssignReporter, | ||
}) | ||
} | ||
} | ||
|
||
module.exports = CustomDetoxEnvironment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
describe('Example', () => { | ||
beforeAll(async () => { | ||
await device.launchApp() | ||
}) | ||
|
||
beforeEach(async () => { | ||
await device.reloadReactNative() | ||
}) | ||
|
||
it('should have welcome screen', async () => { | ||
await expect(element(by.id('welcome'))).toBeVisible() | ||
}) | ||
|
||
it('should show hello screen after tap', async () => { | ||
await element(by.id('hello_button')).tap() | ||
await expect(element(by.text('Hello!!!'))).toBeVisible() | ||
}) | ||
|
||
it('should show world screen after tap', async () => { | ||
await element(by.id('world_button')).tap() | ||
await expect(element(by.text('World!!!'))).toBeVisible() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"testRunner": "jest", | ||
"runnerConfig": "e2e/config.json", | ||
"configurations": { | ||
"android.emu.debug": { | ||
"binaryPath": "android/app/build/outputs/apk/unsigned/debug/app-unsigned-debug.apk", | ||
"build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..", | ||
"type": "android.emulator", | ||
"name": "emu" | ||
}, | ||
"android.emu.release": { | ||
"binaryPath": "android/app/build/outputs/apk/unsigned/debug/app-unsigned-release.apk", | ||
"build": "cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..", | ||
"type": "android.emulator" | ||
} | ||
} | ||
} |
Oops, something went wrong.