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.

KKBOX WWDC17 Performance and Testing - Hokila

4,045 views

Published on

KKTV iOS 工程師 Hokila 分享
影片位置 https://youtu.be/khOrgVT6ivs
相關 Sessions
- [App Startup Time: Past, Present, and Future] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/413/)
- [Writing Energy Efficient Apps] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/238/)
- [Engineering for Testability] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/414/)
- [What's New in Testing] (https://developer.apple.com/videos/wwdc2017/videos/play/wwdc2017/409/)

Published in: Technology
  • Be the first to comment

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
 https://github.com/plu/pxctest •FBSimulatorControl
 https://github.com/facebook/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

×