Quickはいいぞ
by
akatsuki174
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Quick͍͍ͧ @akatsuki174
Slide 2
Slide 2 text
ࣗݾհ • ιϑτΣΞձࣾΤϯδχΞ(2) άϩʔεϋοΧʔ → WebΤϯδχΞ → iOSΤϯδχΞ • Twitter, Qiita, SlideShare, Github →akatsuki174
Slide 3
Slide 3 text
ࠓճͷࢿྉ ͜ͷεϥΠυ https://speakerdeck.com/akatsuki174/ quickhaiizo Qiitaͷهࣄ(εϥΠυલ) http://qiita.com/akatsuki174/items/ 0ed315456d267cde19f4 αϯϓϧίʔυ https://github.com/akatsuki174/ QuickSample
Slide 4
Slide 4 text
࣍ Quickͷ֓ཁ XCTestͱQuickΛൺͯΈΑ͏ NimbleͰͰ͖Δ͜ͱΛֶ΅͏ ·ͱΊɿQuickͷΠΠτίϩ
Slide 5
Slide 5 text
࣍ Quickͷ֓ཁ XCTestͱQuickΛൺͯΈΑ͏ NimbleͰͰ͖Δ͜ͱΛֶ΅͏ ·ͱΊɿQuickͷΠΠτίϩ
Slide 6
Slide 6 text
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ςετϑ ϨʔϜϫʔΫ
Slide 7
Slide 7 text
ຊޠυΩϡϝϯτొ
Slide 8
Slide 8 text
ͦͷ࣌ਓ
Slide 9
Slide 9 text
Nimbleͱ Quick͕෦Ͱ͍ͬͯΔmatcherɻ XCTestΛ͏ΑΓظͱ࣮ࡍͷ ΛΑΓ໌֬ʹද͢͜ͱ͕Ͱ͖Δɻ
Slide 10
Slide 10 text
࣍ Quickͷ֓ཁ XCTestͱQuickΛൺͯΈΑ͏ NimbleͰͰ͖Δ͜ͱΛֶ΅͏ ·ͱΊɿQuickͷΠΠτίϩ
Slide 11
Slide 11 text
XCTestͱQuickΛൺͯΈΑ͏ ςετϝιουͷॻ͖ํ ςετͷॻ͖ํ ςετ͕ࣦഊͨ࣌͠ͷදࣔ
Slide 12
Slide 12 text
XCTestͱQuickΛൺͯΈΑ͏ ςετϝιουͷॻ͖ํ ςετͷॻ͖ํ ςετ͕ࣦഊͨ࣌͠ͷදࣔ
Slide 13
Slide 13 text
ςετϝιουͷॻ͖ํ XCTest Quick
Slide 14
Slide 14 text
ςετϝιουͷॻ͖ํ XCTest Quick
Slide 15
Slide 15 text
ςετϝιουͷॻ͖ํ XCTest Quick describe describe context it
Slide 16
Slide 16 text
XCTestͱQuickΛൺͯΈΑ͏ ςετϝιουͷॻ͖ํ ςετͷॻ͖ํ ςετ͕ࣦഊͨ࣌͠ͷදࣔ
Slide 17
Slide 17 text
ςετͷॻ͖ํ XCTest Quick
Slide 18
Slide 18 text
XCTestͱQuickΛൺͯΈΑ͏ ςετϝιουͷॻ͖ํ ςετͷॻ͖ํ ςετ͕ࣦഊͨ࣌͠ͷදࣔ
Slide 19
Slide 19 text
ςετ͕ࣦഊͨ࣌͠ͷදࣔ XCTest Quick
Slide 20
Slide 20 text
࣍ Quickͷ֓ཁ XCTestͱQuickΛൺͯΈΑ͏ NimbleͰͰ͖Δ͜ͱΛֶ΅͏ ·ͱΊɿQuickͷΠΠτίϩ
Slide 21
Slide 21 text
toEventually(, toEventuallyNot) ඇಉظͷςετ ެࣜΑΓɻ
Slide 22
Slide 22 text
matcherؔ ެࣜΑΓɻ
Slide 23
Slide 23 text
matcherؔ ެࣜΑΓɻ Swift Error Handling
Slide 24
Slide 24 text
matcherؔ ެࣜΑΓɻ Collection Membership
Slide 25
Slide 25 text
matcherؔ ެࣜΑΓɻ Strings
Slide 26
Slide 26 text
matcherؔ ެࣜΑΓɻ Checking if all elements of a collection pass a condition
Slide 27
Slide 27 text
matcherؔ ެࣜΑΓɻ Matching a value to any of a group of matchers
Slide 28
Slide 28 text
࣍ Quickͷ֓ཁ XCTestͱQuickΛൺͯΈΑ͏ NimbleͰͰ͖Δ͜ͱΛֶ΅͏ ·ͱΊɿQuickͷΠΠτίϩ
Slide 29
Slide 29 text
·ͱΊɿQuickͷΠΠτίϩ 1. ΤϥʔϝοηʔδΛΘ͟Θ͟ ɹॻ͔ͳ͍͍ͯ͘ 2. NimbleͰॊೈͳAssert͕ॻ͚Δ 3. ςετͷ·ͱ·Γ͕Θ͔Γ͍͢
Slide 30
Slide 30 text
·ͱΊɿQuickͷΠΠτίϩ 1. ΤϥʔϝοηʔδΛΘ͟Θ͟ ɹॻ͔ͳ͍͍ͯ͘ 2. NimbleͰॊೈͳAssert͕ॻ͚Δ 3. ςετͷ·ͱ·Γ͕Θ͔Γ͍͢
Slide 31
Slide 31 text
ςετͷ·ͱ·Γ͕ Θ͔Γ͍͢ XCTest Quick
Slide 32
Slide 32 text
Έͳ͞Μ QuickΛͬͯΈ·͠ΐ͏
Slide 33
Slide 33 text
ऴΘΓ