|
|
|
|
10
|
const conf = release ? `release` : `debug`;
|
10
|
const conf = release ? `release` : `debug`;
|
11
|
exec.execSync(`detox build --configuration ios.sim.${conf}`);
|
11
|
exec.execSync(`detox build --configuration ios.sim.${conf}`);
|
12
|
|
12
|
|
|
|
13
|
+ startRecording();
|
|
|
14
|
+
|
13
|
setTimeout(() => {
|
15
|
setTimeout(() => {
|
14
|
exec.execAsync(`open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app`);
|
16
|
exec.execAsync(`open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app`);
|
15
|
}, 1000);
|
17
|
}, 1000);
|
16
|
|
18
|
|
17
|
- startRecording();
|
|
|
18
|
-
|
|
|
19
|
exec.execSync(`detox test --configuration ios.sim.${conf} ${process.env.CI ? '--cleanup' : ''}`);
|
19
|
exec.execSync(`detox test --configuration ios.sim.${conf} ${process.env.CI ? '--cleanup' : ''}`);
|
20
|
} finally {
|
20
|
} finally {
|
21
|
stopRecording();
|
21
|
stopRecording();
|