File tree Expand file tree Collapse file tree 9 files changed +195
-112
lines changed
ios/InstabugSample.xcodeproj Expand file tree Collapse file tree 9 files changed +195
-112
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "test-runner" : " jest" ,
3
+ "runner-config" : " e2e/config.json" ,
4
+ "configurations" : {
5
+ "ios.sim.debug" : {
6
+ "binaryPath" : " ios/build/Build/Products/Debug-iphonesimulator/InstabugSample.app" ,
7
+ "build" : " xcodebuild -workspace ios/InstabugSample.xcworkspace -scheme InstabugSample -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build" ,
8
+ "type" : " ios.simulator" ,
9
+ "name" : " iPhone 12"
10
+ },
11
+ "ios.sim.release" : {
12
+ "binaryPath" : " ios/build/Build/Products/Release-iphonesimulator/InstabugSample.app" ,
13
+ "build" : " xcodebuild -workspace ios/InstabugSample.xcworkspace -scheme InstabugSample -configuration Release -sdk iphonesimulator -derivedDataPath ios/build" ,
14
+ "type" : " ios.simulator" ,
15
+ "name" : " iPhone 12"
16
+ },
17
+ "android.emu.debug" : {
18
+ "binaryPath" : " android/app/build/outputs/apk/debug/app-debug.apk" ,
19
+ "build" : " cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd .." ,
20
+ "type" : " android.emulator" ,
21
+ "name" : " Pixel_3_API_28"
22
+ },
23
+ "android.emu.release" : {
24
+ "binaryPath" : " android/app/build/outputs/apk/release/app-release.apk" ,
25
+ "build" : " cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd .." ,
26
+ "type" : " android.emulator" ,
27
+ "name" : " Nexus_6P_API_27"
28
+ }
29
+ }
30
+ }
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ {
2
+ "testEnvironment" : " ./environment" ,
3
+ "testRunner" : " jest-circus/runner" ,
4
+ "testTimeout" : 120000 ,
5
+ "testRegex" : " \\ .e2e\\ .js$" ,
6
+ "reporters" : [" detox/runners/jest/streamlineReporter" ],
7
+ "verbose" : true
8
+ }
Original file line number Diff line number Diff line change
1
+ const {
2
+ DetoxCircusEnvironment,
3
+ SpecReporter,
4
+ WorkerAssignReporter,
5
+ } = require ( 'detox/runners/jest-circus' ) ;
6
+
7
+ class CustomDetoxEnvironment extends DetoxCircusEnvironment {
8
+ constructor ( config , context ) {
9
+ super ( config , context ) ;
10
+
11
+ // Can be safely removed, if you are content with the default value (=300000ms)
12
+ this . initTimeout = 300000 ;
13
+
14
+ // This takes care of generating status logs on a per-spec basis. By default, Jest only reports at file-level.
15
+ // This is strictly optional.
16
+ this . registerListeners ( {
17
+ SpecReporter,
18
+ WorkerAssignReporter,
19
+ } ) ;
20
+ }
21
+ }
22
+
23
+ module . exports = CustomDetoxEnvironment ;
Original file line number Diff line number Diff line change 1
1
describe ( 'Example' , ( ) => {
2
- beforeEach ( async ( ) => {
2
+ beforeAll ( async ( ) => {
3
3
await device . launchApp ( ) ;
4
4
} ) ;
5
5
6
+ beforeEach ( async ( ) => {
7
+ await device . reloadReactNative ( ) ;
8
+ } ) ;
9
+
6
10
it ( 'should have welcome screen' , async ( ) => {
7
11
await expect ( element ( by . id ( 'welcome' ) ) ) . toBeVisible ( ) ;
8
12
} ) ;
Original file line number Diff line number Diff line change 185
185
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
186
186
A81BBED9C3312B4D853082DA /* [CP] Embed Pods Frameworks */,
187
187
13C378C335FC13F596D2F0D4 /* [CP] Copy Pods Resources */,
188
+ B8AD49B72488C8F0D000F195 /* [CP-User] [instabug-reactnative] Upload Sourcemap */,
188
189
);
189
190
buildRules = (
190
191
);
360
361
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-InstabugSample/Pods-InstabugSample-frameworks.sh\"\n";
361
362
showEnvVarsInLog = 0;
362
363
};
364
+ B8AD49B72488C8F0D000F195 /* [CP-User] [instabug-reactnative] Upload Sourcemap */ = {
365
+ isa = PBXShellScriptBuildPhase;
366
+ buildActionMask = 2147483647;
367
+ files = (
368
+ );
369
+ name = "[CP-User] [instabug-reactnative] Upload Sourcemap";
370
+ runOnlyForDeploymentPostprocessing = 0;
371
+ shellPath = /bin/sh;
372
+ shellScript = "bash \"../node_modules/instabug-reactnative/ios/upload_sourcemap.sh\"";
373
+ };
363
374
DD1AA4DBFEAB75A854826F0C /* [CP] Embed Pods Frameworks */ = {
364
375
isa = PBXShellScriptBuildPhase;
365
376
buildActionMask = 2147483647;
Original file line number Diff line number Diff line change 19
19
"@babel/runtime" : " ^7.15.4" ,
20
20
"@react-native-community/eslint-config" : " ^3.0.1" ,
21
21
"babel-jest" : " ^27.2.5" ,
22
- "detox" : " 18.16.0 " ,
22
+ "detox" : " ^ 18.22.1 " ,
23
23
"eslint" : " ^7.32.0" ,
24
24
"jest" : " ^27.2.5" ,
25
25
"metro-react-native-babel-preset" : " ^0.66.2" ,
26
26
"react-test-renderer" : " 17.0.2"
27
27
},
28
-
29
28
"detox" : {
30
29
"test-runner" : " jest" ,
31
- "runner-config" : " __e2e__ /config.json" ,
30
+ "runner-config" : " e2e /config.json" ,
32
31
"configurations" : {
33
32
"ios.sim.debug" : {
34
33
"binaryPath" : " ios/build/Build/Products/Debug-iphonesimulator/InstabugSample.app" ,
44
43
},
45
44
"android.emu.debug" : {
46
45
"binaryPath" : " android/app/build/outputs/apk/debug/app-debug.apk" ,
47
- "build" :
48
- " cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd .." ,
46
+ "build" : " cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd .." ,
49
47
"type" : " android.emulator" ,
50
48
"name" : " Pixel_3_API_28"
51
49
},
52
50
"android.emu.release" : {
53
51
"binaryPath" : " android/app/build/outputs/apk/release/app-release.apk" ,
54
- "build" :
55
- " cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd .." ,
52
+ "build" : " cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd .." ,
56
53
"type" : " android.emulator" ,
57
54
"name" : " Nexus_6P_API_27"
58
55
}
You can’t perform that action at this time.
0 commit comments