はじめに Xcode5になってからか、iOS7になってからかは不明ですが .gcdaファイルが出力されなくなったので、カバレッジが出せなくなりました。 ネット上で色々調べたのですが、なかなか上手く行かず試行錯誤したので、自分の環境でやったことをまとめておきます。 環境 Xcode5 iOS7 Xcode側でやったこと 1.Build Settings から次の設定をする。 ・Generate Test Coverage Files を YES にする。 ・Instrument Program Flow を YES にする。 2.以下のコードを追加 ・AppDelegate に追加 #ifdef DEBUG + (void)initialize { [[NSUserDefaults standardUserDefaults] setValue:@"XCTestLog,GcovTestObse
Code Coverage is described on Wikipedia as: … a measure used to describe the degree to which the source code of a program is tested by a particular test suite. A program with high code coverage has been more thoroughly tested and has a lower chance of containing software bugs than a program with low code coverage. Less bugs? Yes, please! The first big step to take on your road to better software q
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く