ソースを参照

xcpretty was swallowing test errors

Daniel Zlotin 7 年 前
コミット
16d834cb84
共有2 個のファイルを変更した3 個の追加12 個の削除を含む
  1. 0
    2
      scripts/env/env.ios.sh
  2. 3
    10
      scripts/test.unit.ios.js

+ 0
- 2
scripts/env/env.ios.sh ファイルの表示

@@ -2,5 +2,3 @@
2 2
 
3 3
 brew tap wix/brew
4 4
 brew install wix/brew/applesimutils
5
-
6
-gem install xcpretty

+ 3
- 10
scripts/test.unit.ios.js ファイルの表示

@@ -6,7 +6,7 @@ const release = _.includes(process.argv, '--release');
6 6
 function run() {
7 7
   const conf = release ? `Release` : `Debug`;
8 8
 
9
-  execWithXcprettyIfPossible(`cd ./playground/ios &&
9
+  exec.execSync(`cd ./playground/ios &&
10 10
             RCT_NO_LAUNCH_PACKAGER=true
11 11
             xcodebuild build build-for-testing
12 12
             -scheme "ReactNativeNavigation"
@@ -14,9 +14,10 @@ function run() {
14 14
             -sdk iphonesimulator
15 15
             -configuration ${conf}
16 16
             -derivedDataPath ./DerivedData/playground
17
+            -quiet
17 18
             ONLY_ACTIVE_ARCH=YES`);
18 19
 
19
-  execWithXcprettyIfPossible(`cd ./playground/ios &&
20
+  exec.execSync(`cd ./playground/ios &&
20 21
             RCT_NO_LAUNCH_PACKAGER=true
21 22
             xcodebuild test-without-building
22 23
             -scheme "ReactNativeNavigation"
@@ -28,12 +29,4 @@ function run() {
28 29
             ONLY_ACTIVE_ARCH=YES`);
29 30
 }
30 31
 
31
-function execWithXcprettyIfPossible(cmd) {
32
-  if (exec.which('xcpretty')) {
33
-    exec.execSync(`${cmd} | xcpretty`);
34
-  } else {
35
-    exec.execSync(cmd);
36
-  }
37
-}
38
-
39 32
 run();