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

ऴΘΓ