2014-01-13 5 views
6

Xcode 5でXCTestを使用してテストを実行するときに、余分なコンソールメッセージを無効にする方法はありますか?XCTestコンソールメッセージを非表示にする

Test Suite 'xxxxViewTests' started at 2014-01-13 17:10:48 +0000 
Test Suite 'xxxxViewTests' finished at 2014-01-13 17:10:48 +0000. 
Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds 
Test Suite 'yyyyyyViewTests' started at 2014-01-13 17:10:48 +0000 
Test Suite 'yyyyyyViewTests' finished at 2014-01-13 17:10:48 +0000. 
Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds 
Test Suite 'zzzzzzzViewTests' started at 2014-01-13 17:10:48 +0000 
Test Suite 'zzzzzzzViewTests' finished at 2014-01-13 17:10:48 +0000. 
Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds 
Test Suite 'xyxyViewTests' started at 2014-01-13 17:10:48 +0000 
Test Suite 'xyxyViewTests' finished at 2014-01-13 17:10:48 +0000. 
Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds 
Test Suite 'xzxzxzScreenTests' started at 2014-01-13 17:10:48 +0000 
Test Suite 'xzxzxzScreenTests' finished at 2014-01-13 17:10:48 +0000. 
Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds 
Test Suite 'yzyzyzyzyzTests' started at 2014-01-13 17:10:48 +0000 
Test Suite 'yzyzyzyzyzTests' finished at 2014-01-13 17:10:48 +0000. 
Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds 
.... 

答えて

1

編集、プロジェクト計画し、実行したくないテストクラスのチェックを外す:たびに私は、Xcodeのは、私が実行していないテストについて無用の行数を出力しますテストを実行します。あなたがそれらを再度有効にすることを確認してください

enter image description here

製品>スキーム...>編集スキーム...メニュー項目を選択し、左の列にテストを選択して、無関係なテストクラスのチェックを外しますあなたが後でそれらを必要とするとき。すべてのテストクラスのチェックを外すと、のProduct> Testメニュー項目(およびそのCmd-Uショートカット)が無効になります。

関連する問題