それぞれ独自のクラスPhoneRegressionを持つ 2 つのテスト ターゲット (例: ) を含むスキーム (例PhoneSearchTests: ) があります。PhoneCheckoutTestsJenkins ジョブの 1 つで、実行したいのはPhoneCheckoutFormValidationTestsinだけですPhoneCheckoutTests。構成は次のとおりです。
xctool -scheme PhoneRegression \
-destination "platform=iOS Simulator,name=iPhone 6,OS=latest" \
-reporter junit:build/junit.xml -reporter plain \
test -only "PhoneCheckoutTests:PhoneCheckoutFormValidationTests" -freshInstall
これが機能することに気付きました。ただし、スキームで無効になっているテスト メソッドを実行します。PhoneRegression
xctoolでテスト ターゲットを指定するときに、スキームを遵守するようにどのように指示でき-onlyますか?
xctool github ページに問題として投稿されたクロス