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

メール文面確認テストを作りながら、テストについて改めて考えてみた

 メール文面確認テストを作りながら、テストについて改めて考えてみた

masyus_work

January 11, 2019
Tweet

More Decks by masyus_work

Other Decks in Programming

Transcript

  1. MASYUS
    ϝʔϧจ໘֬ೝςετΛ࡞Γͳ͕Βɺ
    ςετʹ͍ͭͯվΊͯߟ͑ͯΈͨ

    View full-size slide

  2. ࠓ೥΋ΑΖ͓͘͠ئ͍͍ͨ͠·͢ʂ

    View full-size slide

  3. ϝʔϧจ໘վमʹؔ͢Δ՝୊
    ʮಥવͰ͕͢ɺ
    Ұ౓ʹଟ਺ͷϝʔϧจ໘ͷվमͱฉ͍ͯ
    ͋ͳͨ͸Ͳ͏ײ͡·͔͢ʁʯ

    View full-size slide

  4. ϝʔϧจ໘վमʹؔ͢Δ՝୊

    View full-size slide

  5. ϝʔϧจ໘վमʹؔ͢Δ՝୊
    վम಺༰͸؆୯ͳ͜ͱ͕ଟׂ͍ʹɺ
    ಈ࡞֬ೝʹ͕͔͔࣌ؒΓ΍͍͢ͷ
    ͕೉఺
    ಛघͳ৚݅Ͱͳ͍ͱૹ৴Ͱ͖ͳ͍ϝʔϧ΋͋Δҝɺ
    ࢓༷Λ೺Ѳ͍ͯ͠ͳ͍ͱେม
    ʢDBͷϨίʔυ΋ࡉ͔͘ૢ࡞͠ͳ͍ͱ͍͚ͳ͔ͬͨΓʣ

    View full-size slide

  6. ϝʔϧจ໘վमʹؔ͢ΔιϦϡʔγϣϯ
    ʮͦ͏ͩɺςετΛॻ͜͏ʯ

    View full-size slide

  7. ςετ
    ʲςετͷ֓ཁʳ
    ୯ମςετ(Ϣχοτςετ)ͷ
    ࣗಈԽΛߦ͏ͨΊͷϑϨʔϜϫʔΫ
    1. JavaɿJUnit
    2. PHPɿPHPUnit

    View full-size slide

  8. ςετ
    ʲςετΛ࡞ΔͱԿ͕ྑ͍ͬͯʁʳ
    1. ಈ࡞֬ೝͷࣗಈԽ
    2. ࣮૷ํ਑ͷ໌֬Խ
    3. ૄ݁߹ͳ࣮૷Λ͢Δߟ͑ํ͕਎ʹͭ͘

    View full-size slide

  9. ςετ
    PHPUnitͷ࣮૷ࣄྫ
    ʢ࣮ࡍʹίʔυݟͤ·͢ʣ

    View full-size slide

  10. ςετ
    TDDʢςετۦಈ։ൃʣ
    ϓϩάϥϜ։ൃख๏ͷҰछͰɺϓϩάϥϜʹඞཁͳ֤ػೳ
    ʹ͍ͭͯɺ࠷ॳʹςετΛॻ͖ʢ͜ΕΛςετϑΝʔετͱ
    ݴ͏ʣɺͦͷςετ͕ಈ࡞͢Δඞཁ࠷௿ݶͳ࣮૷ΛͱΓ͋
    ͑ͣߦͬͨޙɺίʔυΛચ࿅ͤ͞Δɺͱ͍͏୹͍޻ఔΛ܁
    Γฦ͢ελΠϧͰ͋Δɻ

    View full-size slide

  11. ࣮ࡍɺελʔτΞοϓͷݱ৔ʹ͓͍ͯ͸
    ʮ࣮૷͕ઌ͔ɺςετ͕ઌ͔ʁʯ
    ݱ৔ʹԠͯ͡ॊೈʹબ୒

    View full-size slide

  12. ࠓճͷεϥΠυͰݴ͍͍ͨ͜ͱ
    ςετΛॻ͍ͯ
    ʮ֬ೝ࡞ۀͷࣗಈԽʂʯ
    ʮ࣮૷Ϩϕϧ޲্ʂʯ
    ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠

    View full-size slide