Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
What's New in Testing!!!
Search
Shingo Tamaki
July 26, 2017
Technology
4
2.1k
What's New in Testing!!!
WWDC2017のほぼ同名のセッションの内容について簡単にまとめました。
Shingo Tamaki
July 26, 2017
Tweet
Share
More Decks by Shingo Tamaki
See All by Shingo Tamaki
AIエージェントを使ったiOSアプリ開発を試してみた
tamaki
0
41
沖縄モバイルアプリ開発勉強会#1
tamaki
0
100
iOSアプリ開発を始めよう
tamaki
0
160
詳解xcresult.pdf
tamaki
0
330
メルペイでのリグレッションテスト自動化推進のこれまでとこれから
tamaki
0
720
What do you want to test with UI Test v2
tamaki
2
880
JPQRによって変わる日本のQRコード決済
tamaki
0
280
What's New in Testing
tamaki
1
58
What do you want to test with UI Test
tamaki
5
1.9k
Other Decks in Technology
See All in Technology
Keynote - KCD Brazil - Platform Engineering on K8s (portuguese)
salaboy
0
120
Cline、めっちゃ便利、お金が飛ぶ💸
iwamot
19
18k
KCD Brazil '25: Enabling Developers with Dapr & Backstage
salaboy
1
120
ソフトウェア開発におけるインターフェイスという考え方 / PHPerKaigi 2025
k1low
9
3.9k
PostgreSQL Unconference #52 pg_tde
nori_shinoda
0
190
製造業の会計システムをDDDで開発した話
caddi_eng
3
940
Tirez profit de Messenger pour améliorer votre architecture
tucksaun
1
130
技術好きなエンジニアが _リーダーへの進化_ によって得たものと失ったもの / The Gains and Losses of a Tech-Enthusiast Engineer’s “Evolution into Leadership”
kaminashi
0
200
Multitenant 23ai の全貌 - 機能・設計・実装・運用からマイクロサービスまで
oracle4engineer
PRO
2
110
移行できそうでやりきれなかった 10年超えのシステムを葬るための戦略 / phper-kaigi-2025-ryu
carta_engineering
0
680
非エンジニアにも伝えるメールセキュリティ / Email security for non-engineers
ykanoh
13
3.9k
Riverpod & Riverpod Generatorを利用して状態管理部分の処理を書き換えてみる簡単な事例紹介
fumiyasac0921
0
100
Featured
See All Featured
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
30k
How to Ace a Technical Interview
jacobian
276
23k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.2k
Statistics for Hackers
jakevdp
798
220k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.2k
Six Lessons from altMBA
skipperchong
27
3.7k
Build The Right Thing And Hit Your Dates
maggiecrowley
34
2.6k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.4k
GraphQLとの向き合い方2022年版
quramy
45
14k
Visualization
eitanlees
146
15k
VelocityConf: Rendering Performance Case Studies
addyosmani
328
24k
Transcript
What's New in Testing!!!
ࣗݾհ
ࣗݾհ ۄ৴ޛ iOS Engineer! ͖ͳframeworkHomeKitͱXCTestͰ͢ झຯ" ిࢠ࡞⚡ ےτϨ$ ΨδΣοτ%
Parallel Testing Localization Block-based test teardown Multi-app Testing FirstMatch API
Activities Attachments Async Testing (Xcode8.3)
Parallel Testing https://developer.apple.com/videos/play/wwdc2017/102/
Localization ςετ࣌ͷLanguage/Regionࢦఆ͕ՄೳʹͳΓ·ͨ͠ɻ xcodebuildͰ-testLanguage,-testRegionͰࢦఆՄೳ
Block-based test teardown
Multi-app Testing
Multi-app Testing
FirstMatch API
FirstMatch API
Activities
͜Ε·Ͱͷςετ
͜Ε·Ͱͷςετ
͜Ε͔Βͷςετ
࣮ߦϩά͔Βݟͨҧ͍
Attachment
Screenshots
Screenshots
Attachment Lifetime Policies
Async Testing (Xcode 8.3)
XCTWaiter • XCTWaiterͱͯ͠ΣΠτॲཧʹؔ͢Δ෦͕XCTestCase͔ Β͠·ͨ͠ɻ • ରͱͳΔexpectationΛ໌ࣔతʹෳͰ͖ΔΑ͏ʹͳΓ·͠ ͨɻ • XCTWaiterDelegate •
XCTWaiter.Result
XCTWaiter
XCTWaiter
XCTWaiter Explicitly expectation
XCTWaiter.Result XCWaiter.Result͕ఆٛ͞Εɺ࣮ߦ݁Ռͱͯ͠ҎԼͷΑ͏ͳͷ ͕ఆٛ͞Ε͍ͯ·͢ɻ • completed • timedOut • incorrectOrder •
invertedFulfillment • interrupted
XCTWaiterDelegate • nestedWaiter(_:wasInterruptedByTimedOutWaiter:) • waiter(_:didTimeoutWithUnfulfilledExpectations:) • waiter(_:didFulfillInvertedExpectation:) • waiter(_:fulfillmentDidViolateOrderingConstraintsFor:requir edExpectation:)
XCTTestExpectation • expectedFulfillmentCount • isInverted • enforceOrder
isInverted
expectedFulfillmentCount
enforceOrder
XCTTestExpectation • ৽͍͠Expectation͕૿͑·ͨ͠ɻ • XCTKVOExpectation • XCTNSNotificationExpectation • XCTNSPredicateExpectation
https:// developer.apple.com /videos/play/ wwdc2017/409/
Ҏ্