&tag(Xcode4/UnitTest);
*目次 [#l148bde4]
#contents
*参考情報 [#jd2c2448]
-[[https://developer.apple.com/jp/devcenter/ios/library/documentation/UnitTesting.pdf:https://developer.apple.com/jp/devcenter/ios/library/documentation/UnitTesting.pdf]]…Apple公式PDF
-[[Xcode 4 からはじめる Unit Testing - jarinosuke blog:http://blog.jarinosuke.com/entry/20120219/start_unit_testing_using_xcode4]]
-[[初めての単体テスト:http://www.slideshare.net/basuke/do-you-test-your-code]]
-[[[Xcode, Objective-C]SenTestingKitでユニットテスト | 学習B5デスノート:http://fernweh.jp/b/xcode-sentest/]]
-[["Include Unit Tests"をチェックし忘れたプロジェクトにUnitTestの設定をする - おかひろの雑記:http://d.hatena.ne.jp/okahiro_p/20120724/1343122150]]
*SenTestKit [#y50d49c2]
-Xcode4組み込みのテストキット。
-ロジックテストとアプリケーションテストに分けられる。
-デフォルトで作られるのはアプリケーションテスト。ドキュメントにはロジックテストはシミュレータ上でしか動かないとあるけど、アプリケーションテストもシミュレータ上で動いている。ログにAll testsとでているならアプリケーションテスト?


**トラブルシューティング [#dfbbc65b]
***boolの比較でこける [#q94d5ed3]
-[[assert - ios: OCUnit STAssertEquals -> Type missmatch - Stack Overflow:http://stackoverflow.com/questions/8406814/ios-ocunit-stassertequals-type-missmatch]]によるとboolではなく、BOOLを使わないといけないらしい。


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS