Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Our Testing / include "Miwa Style"

Our Testing / include "Miwa Style"

2015-11-26 #cooketn.
speaker: @m_seki, @miwa719

seki at druby.org

November 26, 2015
Tweet

More Decks by seki at druby.org

Other Decks in Programming

Transcript

  1. ᎍΊ͍ͯΔ͜ͱΛ஌Δ • ్தͰ࢓༷͕มΘͬͨΓ • ࣮૷ํ๏ͰᎍΊͨΓ • ͏·͘ಈ͔ͳ͍͜ͱ͕ଟ͍ • ͋Δ෦෼Ͱ੝Γ্͕ͬͯ͠·ͬͨνέοτ •

    ͦΕҎ֎ͷ෦෼͕͋ͬ͞ΓྲྀΕͯ͠·͏͜ͱ΋গͳ͘ͳ͍ • ͜Μͳνέοτ͸ཁ஫ҙʂ • มԽ఺΍Ԍ্ͨ͠ͱ͜Ζ͚ͩͰ͸ͳ͘ɺ·Μ΂Μͳ͘ςετ͠·͢Α
  2. ϓϩάϥϚʔ͕ࠞཚͯ͠Δ͜ͱΛ஌Δ • νέοτʹॻ͍ͯ͋Δ಺༰ • ෼͔ΓͮΒ͍ • ΍ͨΒจষ͕௕͍ • ຊਓ͔Βઆ໌Λฉ͍ͯ΋Α͘෼͔Βͳ͍ •

    ຊਓ΋Α͘෼͔ͬͯͳ͍ͷ͔΋͠Εͳ͍ • ͜Μͳνέοτ͸ཁ஫ҙʂ • νέοτ൪߸Λ΄΅೔खாʹϝϞͯ͠ɺ੺ϖϯͰ͙ΔͬͱғΈ·͢
  3. ϓϩάϥϚʔ͕৺഑ͯ͠Δ͜ͱΛ஌Δ • ͪΌΜͱ࡞Δ͠࡞ΕΔͱࢥ͍ͬͯΔͰ͠ΐʁ • ·ΘΓͷงғؾ΍पลͷ࿩͔Βɺةͳͦ͏ͳͱ͜ΖΛ૝૾͢Δ • إ৭΍੠ͷτʔϯͳΜ͔΋ؾʹ͠·͢ • ෆ҆ͳͱ͖͸ෆ҆ͦ͏ʹͯͨ͠΄͏͕͍͍ •

    ࣗ৴ຬʑʹ͍ͯ͠Δͱɺ΍ΒΕΔΑʢ͏ͪͷνʔϜʣ • ૝૾ͨ͠৺഑͝ͱΛɺ։ൃऀ΍ςελʔʹ࿩͢ • ͲΜͳςετΛ͠Α͏ͱͯ͠Δͷ͔ʢ࣮૷͢Δͱ͖ʹؾʹͯ͠΋Β͑Δʣ • ேձத΋Testing͍ͯ͠ΔʢΤΞʔςεςΟϯάʁʣ
  4. ใࠂ͞Εͨόά͔Βଟ͘ͷ͜ͱΛ஌Δ • ৽͍͠ࢹ఺ • ϓϩάϥϚʔ΍ଞͷςελʔ͸ɺͲ͜ͷԿΛؾʹ͍ͯ͠Δͷ͔ • ώϯτ͕૿͑Δ • ͦΜͳόά͕ग़ΔͳΒɺ͋ͦ͜ͷ͋Ε͸େৎ෉ͳͷ͔ʁ •

    ஌Βͳ͔ͬͨաڈΛ஌Δ • ੲͷνέοτʹḪΔ͜ͱ͕͋Δ • Θͨ͠ͷ஌Βͳ͍աڈͷ։ൃͰى͖͍ͯͨ͜ͱ • ;Δ·͍Λ஌Γɺޡղ͍ͯͨ͠࢓༷ʹؾͮ͘
  5. νέοτΛಡΉ • ͳʹ͕ग़དྷΔΑ͏ʹͳͬͨͷʁ • ग़དྷͨ͜ͱ͸Ͳ͏΍ͬͨΒ෼͔Δͷʁ • ࣮૷தʹى͖͍ͯͨ͜ͱ • ேձͰͷΈΜͳͷ༷ࢠΛࢥ͍ग़͠ͳ͕Βɺ͞Βͬͱ͓͞Β͍ •

    ͲͪΒ͔ͱݴ͏ͱɺ৽ͨͳؾ࣋ͪͰ • ΄΅೔खா΋ಡΈฦ͢ʢؾʹͳͬͨ͜ͱ͕ϝϞͯ͋͠Δʣ ேձ ேձ ேձ ͖ͷ͏ ͓ͱͱ͍ ͖ͬ͞ ʜʜʜ
  6. Testing • ςετέʔεΛมܗ͢Δ • ԿΛ༩͑ͨΒʢ༩͑ͳ͔ͬͨΒʣɺԿ͕Ͳ͏ͳΔͷ͔ • ్தͷॲཧΛࢥ͍ු͔΂ͳ͕Βɺૢ࡞ͷλΠϛϯάΛਤΔ • ෳࡶͳ΋ͷ΄Ͳɺͻͱͭͻͱͭஸೡʹ •

    ໘౗ͳ΋ͷ΄Ͳɺམͪண͍ͯͬ͘͡Γͱ • ೏͍ͷछྨ΍ڧ͞ʹΑͬͯɺมܗ۩߹ʢόϦΤʔγϣϯʣΛม͑Δ ேձ ேձ ேձ ͖ͷ͏ ͓ͱͱ͍ ͖ͬ͞ ʜʜʜ
  7. Testing • ؔ࿈͢Δ͔΋͠Εͳ͍ػೳͱͷ૬ੑ • ࿩୊ʹͳͬͨ΍ͭ͸͍͍ͩͨͰ͖ͯΔ • ·ͩ࿩୊ʹͳ͍ͬͯͳ͍ɺݟ͑ͳ͍΋ͷΛ୳ཱྀ͢΁ • ԿΛ༩͑ͯಈ͘ͷ͔ɺͦΕ͸Ͳ͔͜ΒདྷΔͷ͔ •

    Կ͕࡞ΒΕΔͷ͔ɺͦΕΛ࢖͏ػೳɺ࢖͍ͦ͏΋ͳ͍ػೳ • Ұॹʹ࢖͍ͬͯͨΒͲ͏ͳΔ • νέοτͷΩʔϫʔυݕࡧʢࢹ໺Λ޿͘͢ΔɺͻΒΊ͖ͷώϯτʣ ேձ ேձ ேձ ͖ͷ͏ ͓ͱͱ͍ ͖ͬ͞ ʜʜʜ
  8. Testing • աڈʹى͖ͨݏͳ͜ͱ • Θͨͨͪ͠ͷνʔϜͰى͖ͨ͜ͱ • ։ൃऀɺςελʔͱͷձ࿩͔Β • 10೥෼ͷνέοτ͔Β •

    ͱͳΓͷνʔϜͰى͖ͨ͜ͱ • χϡʔεʹͳ͍ͬͯͨ͜ͱ • ;ͩΜͷੜ׆͔Β΋ ேձ ேձ ேձ ͖ͷ͏ ͓ͱͱ͍ ͖ͬ͞ ʜʜʜ
  9. Testing • ࡢ೔ͱͷҧ͍ • ͳΜͱͳ͘஗͘ͳͬͨײ͕͢͡Δ • ࡢ೔͸ಈ͍͍ͯͨͷʹɺࠓ೔͸ಈ͔ͳ͍ • ࡢ೔ͱݟ͑ํ͕ҧ͏ •

    ୭΋৮ͬͯͳ͍͸ͣͷɺ͋ͷػೳ͕ಈ͔ͳ͍Αʁ • ேձ ேձ ேձ ͖ͷ͏ ͓ͱͱ͍ ͖ͬ͞ ʜʜʜ
  10. Testing • ϓϩάϥϚʔͱͷձ࿩ • ேձͰͷٙ໰΍ɺΘ͔Βͳ͍͜ͱΛڭ͑ͯ΋Β͏ • ฉ͍ͯͳ͍ͷʹ • ͜͏͍͏ͱ͜Ζ͕ෆ҆ͳΜͰ͢ΑͶ •

    ࣮͸͜Ε͸ɺ͜͏͜͏͜͏͍͏࡞Γʹͳ͍ͬͯ·ͯ͠ɺɺɺ • ΈΜͳஸೡʹʢΘͨ͠ʹΘ͔ΔΑ͏ʹʣڭ͑ͯ͘ΕΔ • ϓϩάϥϚʔͱҰॹʹTesting͢Δ͜ͱ΋ʂ ேձ ேձ ேձ ͖ͷ͏ ͓ͱͱ͍ ͖ͬ͞ ʜʜʜ
  11. Testing • ϓϩͷແ৬ͱͷձ࿩ • ௚ٿͰ͘Δ͜ͱ͕ଟ͍ • ʮ͖ͬͱ͜͜ʹόά͕͋Δ͔Βɺࢼͯ͠Έͯʔʯ • Θͨ͠ͷςετΛࢭΊʹ͘Δ܎Γ •

    ʮٳΜͩΒʯ • Θͨࣗ͠਎΋Testing͞Ε͍ͯΔʁ ேձ ேձ ேձ ͖ͷ͏ ͓ͱͱ͍ ͖ͬ͞ ʜʜʜ
  12. Testing • ςελʔͱͷձ࿩ • ؾʹ͢Δ͜ͱ͕શવ͕ͪ͏ • ͓͔͍͠ͱײͨ͜͡ͱΛɺಉ྅͸ͲͷΑ͏ʹײ͡Δͷ͔ • ࣗ෼͕ײ͡Δʮ͓͔͠͞ʯ΁ͷ͍ٙ •

    ςετͰձ࿩ • TestingΛݟͤ߹͏ʢࢸۙڑ཭ʹ͍Δ͔Βࣗવʹݟ͑ͪΌ͏ʣ • ϖΞςεςΟϯά ேձ ேձ ேձ ͖ͷ͏ ͓ͱͱ͍ ͖ͬ͞ ʜʜʜ
  13. Testing • ͓͔͠͞Λݟ͚ͭͨΒ։ൃऀͷݩ΁Go!! • ݱ৅Λݟͯ΋Β͏ʢ઱౓ॏཁʣ • Կ͔Λ஌Γ͕͍ͨͬͯΔͱ͖͕͋Δ • ͦͷ৔ͰҰॹʹTestingͨ͠Γɺ࠶ςετͨ͠Γ •

    ͓͔͠͞ͷݪҼ͕෼͔Δͱɺخͦ͠͏ʹ࿩͠ʹདྷͯ͘ΕΔ • ཌ೔ͷேձͰ෼͔Δͷ͚ͩͲ • ʮࠓ೔ίϛοτ͢ΔͷͰɺ໌೔·ͨςετ͍ͯͩ͘͠͞ʯ ேձ ேձ ேձ ͖ͷ͏ ͓ͱͱ͍ ͖ͬ͞ ʜʜʜ