Browse Source

test all in parallel (locally)

Daniel Zlotin 7 years ago
parent
commit
0da7ad5fe9
2 changed files with 11 additions and 1 deletions
  1. 1
    1
      package.json
  2. 10
    0
      scripts/test.all.js

+ 1
- 1
package.json View File

@@ -35,7 +35,7 @@
35 35
     "test-unit-ios": "node ./scripts/test.unit.ios.js",
36 36
     "test-e2e-android": "node ./scripts/test.e2e.android.js",
37 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 39
     "test-watch": "BABEL_ENV=test jest --coverage --watch",
40 40
     "release": "node ./scripts/release.js"
41 41
   },

+ 10
- 0
scripts/test.all.js View File

@@ -0,0 +1,10 @@
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();