Daniel Zlotin 8 years ago
parent
commit
5f49788777
2 changed files with 6 additions and 2 deletions
  1. 0
    1
      playground/e2e/init.js
  2. 6
    1
      playground/scripts/e2e.ios.js

+ 0
- 1
playground/e2e/init.js View File

6
 detoxConfig['ios-simulator'].app = process.env.detoxAppBuildPath;
6
 detoxConfig['ios-simulator'].app = process.env.detoxAppBuildPath;
7
 
7
 
8
 before(function(done) {
8
 before(function(done) {
9
-  this.timeout(30000);
10
   detox.config(detoxConfig);
9
   detox.config(detoxConfig);
11
   detox.start(done);
10
   detox.start(done);
12
 });
11
 });

+ 6
- 1
playground/scripts/e2e.ios.js View File

29
     shellUtils.exec.kill(`detox-server`);
29
     shellUtils.exec.kill(`detox-server`);
30
     shellUtils.exec.exec(`./node_modules/.bin/detox-server > ./detox-server.log 2>&1`);
30
     shellUtils.exec.exec(`./node_modules/.bin/detox-server > ./detox-server.log 2>&1`);
31
     const detoxAppBuildPath = `ios/DerivedData/playground/Build/Products/${release ? 'Release' : 'Debug'}_Detox-iphonesimulator/playground.app`;
31
     const detoxAppBuildPath = `ios/DerivedData/playground/Build/Products/${release ? 'Release' : 'Debug'}_Detox-iphonesimulator/playground.app`;
32
-    shellUtils.exec.execSync(`detoxAppBuildPath="${detoxAppBuildPath}" BABEL_ENV=test ./node_modules/mocha/bin/mocha e2e --recursive --compilers js:babel-register`);
32
+    shellUtils.exec.execSync(`detoxAppBuildPath="${detoxAppBuildPath}" 
33
+    BABEL_ENV=test 
34
+    ./node_modules/mocha/bin/mocha e2e 
35
+    --timeout 120000 
36
+    --recursive 
37
+    --compilers js:babel-register`);
33
   } finally {
38
   } finally {
34
     shellUtils.exec.kill(`detox-server`);
39
     shellUtils.exec.kill(`detox-server`);
35
     if (release) {
40
     if (release) {