One of the first things I do when working on any Xcode project is set up code coverage. If the coverage shows a hole, I know that area is lacking unit tests. (Be careful, the opposite isn’t true: Just because some code has been touched by unit test execution doesn’t mean it’s actually covered. If altering the behavior of the code causes a test to fail, then you know it’s covered.) Many people use
NEW! AI-Assisted Engineering Workshop Cut through the hype. Get productive with AI. This live training delivers pragmatic hands-on guidance on succeeding with coding agents in your day-to-day work. May 7, 2013 Travis CI is a cloud-based Continuous Integration service which is free to use (but only on public github projects). They recently announced support for OS X agents, which means you can now
xctool is drop-in replacement for xcodebuild test that adds a few extra features: Faster, parallelized test runs. xctool can optionally run all of your test bundles in parallel, speeding up your test runs significantly. At Facebook, we've seen 2x and 3x speed ups by parallelizing our runs. Use the -parallelize option with run-tests or test to enable. See Parallelizing Test Runs for more info. Stru
add libXcodeTest.a to the root of your project (either next to your .xcworkspace or main .xcodeproj file) add the shell script build_and_run_unit_tests.sh to the root of your project make sure you have a scheme that builds your app, and that both the scheme and your target app have the same name (eg. sche e MyApp builds the target MyApp) make sure you have a scheme that builds your unit test targe
Trying to be agile without the technical agile practices leads to frustration. Learn how to build maintainable iOS test code and production code. Then you can “respond to change,” because your code won’t fight you. Subscribe to our newsletter on Quality Coding techniques for iOS developers. You’ll receive free code snippets that will help you write unit tests more quickly. Quality Coding is about
「ウェブリブログ」は 2023年1月31日 をもちましてサービス提供を終了いたしました。 2004年3月のサービス開始より19年近くもの間、沢山の皆さまにご愛用いただきましたことを心よりお礼申し上げます。今後とも、BIGLOBEをご愛顧賜りますよう、よろしくお願い申し上げます。 ※引っ越し先ブログへのリダイレクトサービスは2024年1月31日で終了いたしました。 ※10秒後にBIGLOBEのおすすめページに遷移します
Xcode4 になってから、iOS の Unit Test のやり方が Xcode3 とかなり変わっていて、だいぶやり方を悩んでしまった。試行錯誤した結果を書いておくことにする。 Xcode3 の Unit Test の種類 Xcode3 には、Logic Test と Application Test の2種類があった。詳細はiOS Development Guideを参照。 Logic Test : アプリケーションとは独立してテストコードを実行する方法。ビルド過程でテストが実行される。 Application Test : アプリケーションを実際に実行し、この中でテストを実行する方法。実機でしかテストは実行できない。 2つの使い分けだが、基本的に model のテストは Logic Test で、controller のテストは Application Test で行うのが基本のよう
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く