Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

KKBOX WWDC17 Performance and Testing - Hokila

5.468 visualizaciones

Publicado el

KKTV iOS 工程師 Hokila 分享
相關 Sessions
- [App Startup Time: Past, Present, and Future] (
- [Writing Energy Efficient Apps] (
- [Engineering for Testability] (
- [What's New in Testing] (

Publicado en: Tecnología
  • Sé el primero en comentar

KKBOX WWDC17 Performance and Testing - Hokila

  1. 1. 詹岳勳 Hokila WWDC session summary
  2. 2. App Startup Time: Past, Present, and Future Writing Energy Efficient Apps 
 What's New in Testing Engineering for Testability
  3. 3. feature Improvement you may never use Some Energy you may waste in background
 UI Test & Unit Test New feature on Xcode 9 Test Code Best Practice
  4. 4. What is Dyld the dynamic link editor
  5. 5. App Startup time Things you may do in didFinishLaunchingWithOptions •load user setting •set appearance •init view controller •load 3rd party module
 •it’s better to finish in 600ms
  6. 6. Static initializer tracing find out what is slowly as same time profile
  7. 7. energy efficient app setting -> battery
  8. 8. Reloads on a timer
  9. 9. Async test before
  10. 10. • XCTWaiter : Takes control over to the waiting strategy. • XCTNSPredicateExpectation: Readable expectation while writing automate tests • XCTKVOExpectation: Readable expectation while writing automate tests • XCTDarwinNotificationExpectation: Another readable expectation for notifications.
  11. 11. •pxctest •FBSimulatorControl

  12. 12. headless test with xcodebuild without launch of sumulator $ xcodebuild -scheme "Xcode9-XCTest" -destination 'platform=iOS Simulator,name=iPhone 7 Plus,OS=11.0' build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO Run Test in parallel $ xcodebuild -scheme "Xcode9-XCTest" -destination 'platform=iOS Simulator,name=iPhone 7 Plus,OS=11.0'- destination 'platform=iOS Simulator,name=iPhone 7 Plus,OS=10.3' build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
  13. 13. Multiple app test 
 sample code
  14. 14. Multiple app test Demo