Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

App extensionでテストコードを書く

2,828 views

Published on

potatotips #12の発表資料です

Published in: Engineering
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

App extensionでテストコードを書く

  1. 1. trippiece @kitasuke
  2. 2. - Today - Share - Action - Photo Editing - Finder Sync - Document Provider - Custom Keyboard - Watch App
  3. 3. Host Applicationのみ指定可能
  4. 4. これだとApp Extensions のユニットテストが出来 ない?
  5. 5. やり方が分からなかった のでDeveloper Forumsで 聞いてみました
  6. 6. - Compile code from your extension into your test bundle - Factor the code to be tested into a shared library, and link you test bundle to that library
  7. 7. Xcode6ではApp Extensions のユニットテストがサポー トされていない\(^o^)/
  8. 8. - Extension用のコードをフレーム ワーク化する - テストバンドルでそのコードを テストする
  9. 9. DEMO
  10. 10. xcodebuild test –workspace Potatotips.xcworkspace –scheme Potatotips -destination 'platform=iOS Simulator,name=iPhone 6’ 上記コマンドをCIに追加
  11. 11. - Embedded Frameworkを利用することで、コード 量も減りテスト可能になる - App Extensionsのようにメンテナンス頻度が少な いものこそテストコードを書いて運用コスト削 減 - 欲を言えばUIテストもしたいけど、Extensionsで 使用するUIにはApple標準のUIも多く含んでいる ので大丈夫だと信じてる

×