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

入門ミューテーションテスト/ A bigginer's guide to Mutation testing

01e1fde913d3dee6c3fd5a67d54bc0d4?s=47 y_ahiru
October 12, 2019

入門ミューテーションテスト/ A bigginer's guide to Mutation testing

PHPカンファレンス沖縄 2019 でLTした内容です

01e1fde913d3dee6c3fd5a67d54bc0d4?s=128

y_ahiru

October 12, 2019
Tweet

More Decks by y_ahiru

Other Decks in Technology

Transcript

  1. PHPΧϯϑΝϨϯεԭೄ 2019 ٢ా͋ͻΔ (@strtyuu) ೖ໳ϛϡʔςʔγϣϯςετ

  2. ࣗݾ঺հ  ٢ా͋ͻΔ !TUSUZVV τΡΪϟολʔגࣜձࣾ 4PGUXBSF&OHJOFFS

  3.  $VSBUJPO$PNNVOJDBUJPO1MBUGPSN IUUQTUPHFUUFSDPN ·ͱΊΑ͏ɺ͋ͭ·Ζ͏

  4. ςετॻ͍ͯ·͔͢ʁ 

  5. lྑ͍zςετॻ͍ͯ·͔͢ʁ 

  6. ྑ͍ςετͬͯԿͩΖ͏  ɾಡΊ͹Ϋϥεͷ࢓༷͕Θ͔Δʁ ɾόά͕ൃੜ͠ͳ͍͜ͱΛอূͯ͘͠ΕΔʁ ɾ։ൃͷϦζϜΛ࡞ͬͯ͘ΕΔʁ 5%%  ɾFUD

  7. ྑ͍ςετͬͯԿͩΖ͏  ɾಡΊ͹Ϋϥεͷ࢓༷͕Θ͔Δʁ ɾόά͕ൃੜ͠ͳ͍͜ͱΛอূͯ͘͠ΕΔʁ ɾ։ൃͷϦζϜΛ࡞ͬͯ͘ΕΔʁ 5%%  ɾFUD

  8. Ͳ͏΍ͬͯ֬ೝ͢Δʜʜʁ  ɾڧ͍ΤϯδχΞʹϨϏϡʔͯ͠΋Β͏ʁ ɾΧόϨοδΛʹ͢Δʁ

  9. Ͳ͏΍ͬͯ֬ೝ͢Δʜʜʁ  ɾڧ͍ΤϯδχΞʹϨϏϡʔͯ͠΋Β͏ʁ ɾΧόϨοδΛʹ͢Δʁ

  10. ϛϡʔςʔγϣϯςετ Λ࢖͓͏ 

  11. ϛϡʔςʔγϣϯςετͱ͸ 

  12.  ςετ ΞϓϦέʔγϣϯ ඼࣭Λอূ

  13.  ϛϡʔςʔγϣϯςετ ςετ ΞϓϦέʔγϣϯ ඼࣭Λอূ ඼࣭Λอূ

  14. Ͳ͏΍͍ͬͯΔͷ͔  ɾΞϓϦέʔγϣϯίʔυΛมҟͤ͞ɺ࠶౓ς ετΛ࣮ߦ͢Δ͜ͱͰςετͷਖ਼౰ੑΛධՁ͢ Δ

  15.  IUUQTHJUIVCDPNJOGFDUJPOJOGFDUJPO

  16.  ɾ'VODUJPO4JHOBUVSF ɾ6OXSBQ'VODUJPO ɾ#JOBSZ"SJUINFUJD ɾ3PVOE'BNJMZ ɾ#PPMFBO4VCTUJUVUJPO ɾ$POEJUJPOBM#PVOEBSJFT ɾ&RVBMPS*EFOUJDBM$IFDLT ɾ/FHBUFE$POEJUJPOBMT ɾ0QFSBUPS

    ɾ*ODSFNFOUT ɾ3FUVSO7BMVFT ɾ3FNPWBM.VUBUPST ɾ-PPQ ɾ4PSUJOH ɾ-JUFSBM/VNCFST ɾ&YDFQUJPOT ɾ5ZQF$BTUJOH ɾ3FHFY ɾ&YUFOTJPOT
  17.  $a = array_filter([‘A’, 3, ‘C’], ‘is_int’); $a = [‘A’,

    3, ‘C’];
  18.  $a < $b $a <= $b $a >= $b

  19.  try {} catch (\Exception $e) {} finally {} try

    {} catch (\Exception $e) {}
  20. 

  21. 

  22. %&.0 

  23. ϛϡʔςʔγϣϯςετ
 ׆༻͍͖ͯ͠·͠ΐ͏ʂ