Bläddra i källkod

test all in parallel (locally)

Daniel Zlotin 8 år sedan
förälder
incheckning
0da7ad5fe9
2 ändrade filer med 11 tillägg och 1 borttagningar
  1. 1
    1
      package.json
  2. 10
    0
      scripts/test.all.js

+ 1
- 1
package.json Visa fil

35
     "test-unit-ios": "node ./scripts/test.unit.ios.js",
35
     "test-unit-ios": "node ./scripts/test.unit.ios.js",
36
     "test-e2e-android": "node ./scripts/test.e2e.android.js",
36
     "test-e2e-android": "node ./scripts/test.e2e.android.js",
37
     "test-e2e-ios": "node ./scripts/test.e2e.ios.js",
37
     "test-e2e-ios": "node ./scripts/test.e2e.ios.js",
38
-    "test": "yarn run test-js && yarn run test-unit-android && yarn run test-e2e-android && yarn run test-unit-ios && yarn run test-e2e-ios",
38
+    "test-all": "node ./scripts/test.all.js",
39
     "test-watch": "BABEL_ENV=test jest --coverage --watch",
39
     "test-watch": "BABEL_ENV=test jest --coverage --watch",
40
     "release": "node ./scripts/release.js"
40
     "release": "node ./scripts/release.js"
41
   },
41
   },

+ 10
- 0
scripts/test.all.js Visa fil

1
+const shellUtils = require('shell-utils');
2
+
3
+function run() {
4
+  // shellUtils.exec.execSync(`yarn run test-js`);
5
+  // shellUtils.exec.execSync(`yarn run test-unit-android && yarn run test-unit-ios`);
6
+  shellUtils.exec.exec(`yarn run test-e2e-android`);
7
+  shellUtils.exec.exec(`yarn run test-e2e-ios`);
8
+}
9
+
10
+run();