Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Quickはいいぞ
Search
akatsuki174
March 01, 2016
Technology
1.1k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Quickはいいぞ
2016/03/01(火) shibuya.swift
テストフレームワークのQuickについて。
akatsuki174
March 01, 2016
More Decks by akatsuki174
See All by akatsuki174
逆向きUIの世界 〜iOSアプリのRTL言語対応〜
akatsuki174
1
750
逆向きUIの世界〜AndroidアプリのRTL言語対応〜
akatsuki174
1
1.3k
私が変えてきたこと、変えなかったこと
akatsuki174
2
1.1k
最近読んでいる本-読書シェア会vol.1
akatsuki174
2
310
SwiftUI、UIKitでキャプチャを撮ろう!
akatsuki174
1
170
Appleにおけるプライバシーの全容を把握する
akatsuki174
0
6.4k
近年のAppleにおける位置情報とプライバシー
akatsuki174
3
540
オフライン勉強会ぼっち対策
akatsuki174
1
760
Xcode 15の新機能
akatsuki174
0
3k
Other Decks in Technology
See All in Technology
バックオフィスに染み出すTypeScript ── clasp で安全に仕組みを作る
nealle
1
180
2拠点SRE活動始めてみた | sogaoh's LT @ ホンマでっかSRE勉強会 #3
sogaoh
PRO
0
240
デザインレビューは自動化できるのか?─ Flutter × Figma で UI 品質保証を考える
techiro
2
800
視野はAIに、視座は人に / ai-for-breadth-humans-for-perspective
nkzn
6
3.1k
コードレビューをなくして見えたもの
henteko
0
140
[JAWS Festa 2026]一番いい仕事は、請求書に現れない / jawsfesta2026
sh_fk2
2
210
Don't write the architecture only in the prompt.
neohsu
0
310
`go get`したらELFが降ってきた件
taiyow
0
180
Copilot Coworkで「みのるん式」やってみた
minorun365
PRO
2
1.6k
お客様の「やりたい」の先を見通す合意形成プロセス ~裏にある課題と不安を解きほぐすコツ~
yukakoseki
0
110
re:Invent の去年のスケジュールを公開します!
miu_crescent
PRO
0
300
詳解 never 型 - ボトム型の性質を深掘り
nealle
0
160
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1.1k
Site-Speed That Sticks
csswizardry
13
1.6k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
480
30 Presentation Tips
portentint
PRO
1
460
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Paper Plane (Part 1)
katiecoart
PRO
2
12k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
How to train your dragon (web standard)
notwaldorf
96
6.9k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
350
We Have a Design System, Now What?
morganepeng
55
8.4k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
460
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
470
Transcript
Quick͍͍ͧ @akatsuki174
ࣗݾհ • ιϑτΣΞձࣾΤϯδχΞ(2) άϩʔεϋοΧʔ → WebΤϯδχΞ → iOSΤϯδχΞ • Twitter,
Qiita, SlideShare, Github →akatsuki174
ࠓճͷࢿྉ ͜ͷεϥΠυ https://speakerdeck.com/akatsuki174/ quickhaiizo Qiitaͷهࣄ(εϥΠυલ) http://qiita.com/akatsuki174/items/ 0ed315456d267cde19f4 αϯϓϧίʔυ https://github.com/akatsuki174/ QuickSample
࣍ Quickͷ֓ཁ XCTestͱQuickΛൺͯΈΑ͏ NimbleͰͰ͖Δ͜ͱΛֶ΅͏ ·ͱΊɿQuickͷΠΠτίϩ
࣍ Quickͷ֓ཁ XCTestͱQuickΛൺͯΈΑ͏ NimbleͰͰ͖Δ͜ͱΛֶ΅͏ ·ͱΊɿQuickͷΠΠτίϩ
Quickͱ “Quick is a behavior-driven development framework for Swift and
Objective-C. Inspired by RSpec, Specta, and Ginkgo.” https://github.com/Quick/QuickΑΓൈਮ →Swift, Objective-CͷͨΊͷBDDςετϑ ϨʔϜϫʔΫ
ຊޠυΩϡϝϯτొ
ͦͷ࣌ਓ
Nimbleͱ Quick͕෦Ͱ͍ͬͯΔmatcherɻ XCTestΛ͏ΑΓظͱ࣮ࡍͷ ΛΑΓ໌֬ʹද͢͜ͱ͕Ͱ͖Δɻ
࣍ Quickͷ֓ཁ XCTestͱQuickΛൺͯΈΑ͏ NimbleͰͰ͖Δ͜ͱΛֶ΅͏ ·ͱΊɿQuickͷΠΠτίϩ
XCTestͱQuickΛൺͯΈΑ͏ ςετϝιουͷॻ͖ํ ςετͷॻ͖ํ ςετ͕ࣦഊͨ࣌͠ͷදࣔ
XCTestͱQuickΛൺͯΈΑ͏ ςετϝιουͷॻ͖ํ ςετͷॻ͖ํ ςετ͕ࣦഊͨ࣌͠ͷදࣔ
ςετϝιουͷॻ͖ํ XCTest Quick
ςετϝιουͷॻ͖ํ XCTest Quick
ςετϝιουͷॻ͖ํ XCTest Quick describe describe context it
XCTestͱQuickΛൺͯΈΑ͏ ςετϝιουͷॻ͖ํ ςετͷॻ͖ํ ςετ͕ࣦഊͨ࣌͠ͷදࣔ
ςετͷॻ͖ํ XCTest Quick
XCTestͱQuickΛൺͯΈΑ͏ ςετϝιουͷॻ͖ํ ςετͷॻ͖ํ ςετ͕ࣦഊͨ࣌͠ͷදࣔ
ςετ͕ࣦഊͨ࣌͠ͷදࣔ XCTest Quick
࣍ Quickͷ֓ཁ XCTestͱQuickΛൺͯΈΑ͏ NimbleͰͰ͖Δ͜ͱΛֶ΅͏ ·ͱΊɿQuickͷΠΠτίϩ
toEventually(, toEventuallyNot) ඇಉظͷςετ ެࣜΑΓɻ
matcherؔ ެࣜΑΓɻ
matcherؔ ެࣜΑΓɻ Swift Error Handling
matcherؔ ެࣜΑΓɻ Collection Membership
matcherؔ ެࣜΑΓɻ Strings
matcherؔ ެࣜΑΓɻ Checking if all elements of a collection pass
a condition
matcherؔ ެࣜΑΓɻ Matching a value to any of a group
of matchers
࣍ Quickͷ֓ཁ XCTestͱQuickΛൺͯΈΑ͏ NimbleͰͰ͖Δ͜ͱΛֶ΅͏ ·ͱΊɿQuickͷΠΠτίϩ
·ͱΊɿQuickͷΠΠτίϩ 1. ΤϥʔϝοηʔδΛΘ͟Θ͟ ɹॻ͔ͳ͍͍ͯ͘ 2. NimbleͰॊೈͳAssert͕ॻ͚Δ 3. ςετͷ·ͱ·Γ͕Θ͔Γ͍͢
·ͱΊɿQuickͷΠΠτίϩ 1. ΤϥʔϝοηʔδΛΘ͟Θ͟ ɹॻ͔ͳ͍͍ͯ͘ 2. NimbleͰॊೈͳAssert͕ॻ͚Δ 3. ςετͷ·ͱ·Γ͕Θ͔Γ͍͢
ςετͷ·ͱ·Γ͕ Θ͔Γ͍͢ XCTest Quick
Έͳ͞Μ QuickΛͬͯΈ·͠ΐ͏
ऴΘΓ