Spek / Quick で BDD 環境を整えよう

Spek / Quick で BDD 環境を整えよう

2020/01/24 HAKATA Test Night #2
https://testnight.connpass.com/event/152296/

9d1961575e45a8286cdde5f86dbba312?s=128

akatsuki174

January 24, 2020
Tweet

Transcript

  1. Spek / Quick Ͱ BDD ؀ڥΛ੔͑Α͏ HAKATA Test Night #2

    @akatsuki174
  2. ࣗݾ঺հ

  3. • ਢ౻ຘʢ@akatsuki174ʣ • iOS→AndroidΤϯδχΞ • גࣜձࣾTimersॴଐ • ϦϯάϑΟοτɿϨϕϧ135 • Fit

    Boxingɿˢಉ࣮࣌ࢪத
  4. • αʔόʔαΠυΤϯδχΞ (PHP, Golang, AWS) • AndroidΤϯδχΞ (Kotlin) • iOSΤϯδχΞ

    (Swift) TimersͰ͸ݱࡏΤϯδχΞશ৬छ࠾༻தʂ
 ৄ͘͠͸"Timers","Famm"Ͱݕࡧ
  5. None
  6. ࠓ೔ͷ࿩

  7. ֓ཁ • iOS / Android ΤϯδχΞ྆ํָ͕͠ΊΔΑ͏ BDD ςετϑϨʔϜϫʔΫΛ޿͘ઙ͘঺հ • ྆ํࣅ͍ͯΔͷͰɺൺֱͭͭ͠঺հ

  8. ໨࣍ • Spek ͷجૅ • ಋೖํ๏ɺॻ͖ํ౳ • Quick ͷجૅ •

    ಋೖํ๏ɺॻ͖ํ౳
  9. ϒϩάʹͯࠓ೔ͷొஃͷจষ൛ެ։

  10. ຊ୊ʹೖΔલʹ

  11. ڍख͍ͯͩ͘͠͞ • iOS / Android ΤϯδχΞͷਓ • Spek / Quick

    Λ࢖ͬͨ͜ͱ͕͋Δਓ
  12. Spek ͱ͸

  13. Spek Framework

  14. ֓ཁ • Kotlin ͷͨΊͷ BDD ςετϑϨʔϜϫʔΫ • JUnit 5 ্Ͱಈ࡞

    • RSpec ͬΆ͘ॻ͘͜ͱ΋Ͱ͖Δ • ver 2.x Ͱେ͖Ίͷมߋ͕ೖͬͨ • ࢿྉ࡞੒࣌఺Ͱͷ࠷৽ver͸ 2.0.9
  15. Quick ͱ͸

  16. Quick

  17. ֓ཁ • Swift, Objective-CͷͨΊͷBDDςετ ϑϨʔϜϫʔΫ • RSpec ͬΆ͘ॻ͚Δ • ೔ຊޠυΩϡϝϯτ͕ॆ࣮

    • ࢿྉ࡞੒࣌఺Ͱͷ࠷৽ver͸ 2.2.0
  18. ಋೖํ๏

  19. Spek

  20. None
  21. +6OJU

  22. TQFL

  23. KVOJUWJOUBHF

  24. 4QFLؔ࿈

  25. Quick

  26. Cartfile.private ʴ CarthageΛ࢖͏࣌ʹ͍ͭ΋΍Δ࡞ۀ

  27. ςετίʔυ

  28. αϯϓϧ • FizzBuzzϝιουΛ Spek, Quick Ͱςετ͠ ͯΈΔ • FizzBuzzϝιουࣗମ͸লུ

  29. લఏ஌ࣝʢSpek, Quick ڞ௨ʣ • describeɿςετର৅Λهड़ • contextɿςετ৚݅Λهड़ • itɿظ଴͢Δ݁ՌΛهड़

  30. Spek

  31. None
  32. จΛಡΊ͹͙͢ ࢓༷͕Θ͔Δ

  33. Quick

  34. 4QFLͱ ΄΅ಉ͡

  35. ࣮ߦɺ࣮ߦ݁Ռ

  36. Spek

  37. ϓϥάΠϯಋೖ • Spek Framework pluginΛಋೖ͢Δͱςετ ͷࠨଆʹ⾣ϚʔΫ͕ग़࣮ͯߦͰ͖Δ

  38. None
  39. ςετ݁Ռ ͭͷςετ ͕௨ա

  40. Θ͟ͱࣦഊͤͯ͞ΈΑ͏ ˓4USJOH  9*OU 

  41. None
  42. ࣦͭഊɺͭ੒ޭ ͲͷέʔεͰࣦഊ ͨ͠ͷ͔͕Θ͔Δ ظ଴஋ͱ࣮ଌ஋͕ Θ͔Δ

  43. Quick

  44. 4QFLͱ΄΅ಉ͡

  45. None
  46. Θ͟ͱࣦഊͤͯ͞ΈΑ͏ ˓4USJOH  94USJOH 

  47. None
  48. ͲͷέʔεͰࣦഊ ͨ͠ͷ͔͕Θ͔Δ ظ଴஋ͱ࣮ଌ஋͕ Θ͔Δ

  49. ·ͱΊ

  50. ·ͱΊ • Spek / Quick ͸ಋೖ͕؆୯ • ࢓༷ॻײ͋;ΕΔςετ͕ॻ͚Δ • ଞݴޠΤϯδχΞͰ΋ಡΈ΍͍͢

    • ωετΛ׆༻ͯ͠ݟ΍͘͢Θ͔Γ΍͘͢ॻ͚Δ
  51. ؔ࿈ࢿྉ

  52. ·ͱΊ • αϯϓϧίʔυ • https://github.com/akatsuki174/Spek2Sample • https://github.com/akatsuki174/QuickSample • จࣈ൛ࢿྉ •

    https://techblog.timers-inc.com/entry/ bdd_with_spek_quick
  53. ͝ਗ਼ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ