What's New in Testing!!!

What's New in Testing!!!

WWDC2017のほぼ同名のセッションの内容について簡単にまとめました。

Db5cf21a75ebe2484b95ea9dec5f573b?s=128

Shingo Tamaki

July 26, 2017
Tweet

Transcript

  1. What's New in Testing!!!

  2. ࣗݾ঺հ

  3. ࣗݾ঺հ ۄ৓৴ޛ iOS Engineer! ޷͖ͳframework͸HomeKitͱXCTestͰ͢ झຯ" ిࢠ޻࡞⚡ ےτϨ$ ΨδΣοτ%

  4. Parallel Testing Localization Block-based test teardown Multi-app Testing FirstMatch API

    Activities Attachments Async Testing (Xcode8.3)
  5. Parallel Testing https://developer.apple.com/videos/play/wwdc2017/102/

  6. Localization ςετ࣌ͷLanguage/Regionࢦఆ͕ՄೳʹͳΓ·ͨ͠ɻ xcodebuildͰ͸-testLanguage,-testRegionͰࢦఆՄೳ

  7. Block-based test teardown

  8. Multi-app Testing

  9. Multi-app Testing

  10. FirstMatch API

  11. FirstMatch API

  12. Activities

  13. ͜Ε·Ͱͷςετ

  14. ͜Ε·Ͱͷςετ

  15. ͜Ε͔Βͷςετ

  16. ࣮ߦϩά͔Βݟͨҧ͍

  17. Attachment

  18. Screenshots

  19. Screenshots

  20. Attachment Lifetime Policies

  21. Async Testing (Xcode 8.3)

  22. XCTWaiter • XCTWaiterͱͯ͠΢ΣΠτॲཧʹؔ͢Δ෦෼͕XCTestCase͔ Β෼཭͠·ͨ͠ɻ • ର৅ͱͳΔexpectationΛ໌ࣔతʹෳ਺Ͱ͖ΔΑ͏ʹͳΓ·͠ ͨɻ • XCTWaiterDelegate •

    XCTWaiter.Result
  23. XCTWaiter

  24. XCTWaiter

  25. XCTWaiter Explicitly expectation

  26. XCTWaiter.Result XCWaiter.Result͕ఆٛ͞Εɺ࣮ߦ݁Ռͱͯ͠ҎԼͷΑ͏ͳ΋ͷ ͕ఆٛ͞Ε͍ͯ·͢ɻ • completed • timedOut • incorrectOrder •

    invertedFulfillment • interrupted
  27. XCTWaiterDelegate • nestedWaiter(_:wasInterruptedByTimedOutWaiter:) • waiter(_:didTimeoutWithUnfulfilledExpectations:) • waiter(_:didFulfillInvertedExpectation:) • waiter(_:fulfillmentDidViolateOrderingConstraintsFor:requir edExpectation:)

  28. XCTTestExpectation • expectedFulfillmentCount • isInverted • enforceOrder

  29. isInverted

  30. expectedFulfillmentCount

  31. enforceOrder

  32. XCTTestExpectation • ৽͍͠Expectation͕૿͑·ͨ͠ɻ • XCTKVOExpectation • XCTNSNotificationExpectation • XCTNSPredicateExpectation

  33. https:// developer.apple.com /videos/play/ wwdc2017/409/

  34. Ҏ্