Xcode 6になって、Simulatorの数が増えて、コマンドラインでテストを実行したい場合、 xcodebuildコマンドの情報を見ても、何を指定したらいいのかイマイチよくわからなかったので調査しました。 コマンドラインでテスト実行 Testing with Xcode に記述があります。 指定する必要があるのは、workspace(or project)、scheme、destinationです。 schemeは、テスト用に新規作成したほうがよいでしょう。 destinationは、iOS Device、Simulator、OSバージョンなどをkey=valueペアでカンマ区切りで指定します。 destinationに何を指定すべきかは、destinationに適当なkey=valueを指定してコマンドを実行すると一覧が表示されるのでそれで確認するのがよいでしょう。 xcodebui
Xcode 5になってからxcodebuildも進化していて、Xcode 4までネックになっていたApplication Testsの実行も簡単になりました。 そういうわけで自分にとってのxctoolの必要性は薄まり、あとはログさえキレイになってくれればいいのになあと思っていたのですが、そんなときにxcprettyが登場しました。 mneorr/XCPretty xctoolとの違い xctoolはxcodebuildを置き換えることを目的としていましたが、xcprettyはxcodebuildと共存してログの整形のみを行います。 xctoolの場合、”xcodebuildでは動くけどxctoolでは動かない”という状況に遭遇することがありますが、 xcprettyはビルドやテストの実行自体にxcodebuildを利用するので、既にxcodebuildで進んでいるプロジェクトでは簡単に利用
If you are running a version of Xcode Tools other than 5.0, view the documentation locally: In Xcode InTerminal, using the man(1) command Manual pages are intended as a quick reference for people who already understand atechnology. To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5). For more information about thistechnology, look for othe
add libXcodeTest.a to the root of your project (either next to your .xcworkspace or main .xcodeproj file) add the shell scriptbuild_and_run_unit_tests.sh to the root of your project make sure you have a scheme thatbuilds your app, and that both the scheme and your target app have the same name (eg. sche e MyAppbuilds the target MyApp) make sure you have a scheme thatbuilds your unit test targe
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く