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

良いテストデータ、悪いテストデータ / testdata-antipattern

fortkle
October 08, 2017

良いテストデータ、悪いテストデータ / testdata-antipattern

PHPカンファレンス2017 LT

fortkle

October 08, 2017
Tweet

More Decks by fortkle

Other Decks in Technology

Transcript

  1. DMBTT"SUJDMFT'JYUVSFFYUFOET5FTU'JYUVSF \ QVCMJDSFDPSET< < UJUMF͋͋͋͋͋͋  CPEZ͋͋͋͋͋͋  TVCUJUMFb͋͋͋͋͋͋ 

    DSFBUFE  NPEJpFE >  ʜ ུ ʜ > ͦͷᶄ
 ҙຯͷͳ͍จࣈྻͷςετσʔλ
  2. DMBTT"SUJDMFT'JYUVSFFYUFOET5FTU'JYUVSF \ QVCMJDSFDPSET< < UJUMFຐ๏͔͍ͭϓϦΩϡΞʂ  CPEZຐ๏ͷ͜ͱ͹ʰΩϡΞοϓὑϥύύʱͰ ;ͨͭͷੈք͕͍·ͭͳ͕Δ  TVCUJUMFb·΄ϓϦ

     DSFBUFE  NPEJpFE >  ʜ ུ ʜ > ͦͷᶅ
 ݸਓͷओு͕ग़͍͗ͯ͢Δςετσʔλ
  3. ͦͷᶆ
 ੔߹ੑ͕औΕ͍ͯͳ͍ςετσʔλ DMBTT"SUJDMFT'JYUVSFFYUFOET5FTU'JYUVSF \ QVCMJDSFDPSET< < UJUMF࠷ॳͷهࣄ  CPEZ࠷ॳͷهࣄͷຊจ 

    TVCUJUMFb࠷ॳͷهࣄͷαϒλΠτϧ  DSFBUFE  NPEJpFE >  ʜ ུ ʜ >
  4. ϙΠϯτᶆྫ͑͹'BDUPSZΛ࢖͏ w ྫ͑͹-BSBWFMͷ.PEFM'BDUPSZͰ
 ͜Μͳ෩ʹఆٛ͢Δͱ "SUJDMFϞσϧͷ'BDUPSZΛఆٛ GBDUPSZEFpOF "QQa.PEFMa"SUJDMFDMBTT GVODUJPO 'BLFSGBLFS \

    SFUVSO< UJUMFGBLFSUJUMF  DPOUFOUGBLFSQBSBHSBQI  VTFS@JEGVODUJPO \ SFUVSOGBDUPSZ "QQa6TFSDMBTT DSFBUF JE ^ > ^ 
  5. ϙΠϯτᶆྫ͑͹'BDUPSZΛ࢖͏ w ؆୯ʹςετσʔλΛੜ੒ˍऔಘͰ͖Δ w ଐੑͷΦʔόʔϥΠυͰҟৗܥͷσʔλ΋؆୯ʹ࡞੒ ϢʔβʔͷςετσʔλΛੜ੒ VTFSGBDUPSZ "QQa6TFSDMBTT NBLF 

    ෆਖ਼ͳϢʔβʔͷςετσʔλΛੜ੒ʢOBNF͕௕͍Ϣʔβʔʣ VTFSGBDUPSZ "QQa6TFSDMBTT NBLF < OBNFणݶແणݶແޒ߷ͷࡲΓ੾Εւ࠭རਫڕͷਫߦ຤ >