You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
テストの書き方、Quickの使い方 February 9, 2016 最近XCTestを担当しているアップル社員と話す機会によく恵まれています。その方々が言うには、Xcode/XCTestの担当部署の任務は「テストを書く習慣を広め、App Storeにあるアプリの品質向上に貢献する」そうです。 私は数年Kiwi、Specta、Quickのようなテスト・ツールを開発して、メンテしています。そしてここ数年ずっと思っているのが、実は役に立つテストを書くのは非常に簡単で、XCTestでもQuickでも大した違いがない、ということです。 ところが、いいテストを書くのが簡単でも、書き方を説明するドキュメントが意外と少なかったり、古かったりします。そこで去年QuickのDocumentationディレクトリにチュートリアルを置くようにしました。 チュートリアルは英語で書かれていますが、今年はそのチュート
Let's say you want to write a method that looks something like this: - (NSNumber *)nextReminderId { NSNumber *currentReminderId = [[NSUserDefaults standardUserDefaults] objectForKey:@"currentReminderId"]; if (currentReminderId) { // Increment the last reminderId currentReminderId = @([currentReminderId intValue] + 1); } else { // Set to 0 if it doesn't already exist currentReminderId = @0; } // Up
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く