Machine learningSoftware Testing

การทดสอบการกลายพันธุ์ (Mutation Testing)

การทดสอบการกลายพันธุ์เป็นเทคนิคการฉีดข้อผิดพลาด (fault-injection) ที่พัฒนาโดย DeMillo, Lipton และ Sayward ในปี 1978 ซึ่งประเมินประสิทธิภาพของชุดทดสอบโดยการนำข้อบกพร่องเล็กๆ น้อยๆ ที่จงใจสร้างขึ้น (การกลายพันธุ์) เข้าไปในซอร์สโค้ด และตรวจสอบว่าชุดทดสอบสามารถตรวจจับข้อบกพร่องเหล่านั้นได้หรือไม่ ชุดทดสอบที่สามารถกำจัด (ตรวจจับ) มิวแทนต์ทั้งหมดได้ จะมีความแข็งแกร่งกว่าชุดทดสอบที่บรรลุการครอบคลุมโค้ดในระดับสูงโดยไม่สามารถกำจัดมิวแทนต์ได้

เปิดใน MethodMindเร็ว ๆ นี้วิดีโอเร็ว ๆ นี้Download slides

อ่านวิธีฉบับเต็ม

สำหรับสมาชิกเท่านั้น

เข้าสู่ระบบด้วยบัญชีฟรีเพื่ออ่านส่วนนี้

เข้าสู่ระบบ

แหล่งอ้างอิง

  1. DeMillo, R. A., Lipton, R. J., & Sayward, F. G. (1978). Hints on test data selection: Help for the practicing programmer. IEEE Computer, 11(4), 34–41. DOI: 10.1109/C-M.1978.218136
  2. Just, R., Jalali, D., Inozemtseva, L., Ernst, M. D., & Holmes, R. (2014). Are mutants killed by tests? How test suite composition affects the effectiveness of mutation testing. Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering. link
  3. Jia, Y., & Harman, M. (2010). An analysis and survey of the development of mutation testing. IEEE Transactions on Software Engineering, 37(5), 649–678. DOI: 10.1109/TSE.2010.62

วิธีอ้างอิงหน้านี้

ScholarGate. (2026, June 3). Mutation Testing for Test Adequacy. ScholarGate. https://scholargate.app/th/numerical-methods/mutation-testing

ScholarGateMutation Testing (Mutation Testing for Test Adequacy). สืบค้นเมื่อ 2026-06-15 จาก https://scholargate.app/th/numerical-methods/mutation-testing · ชุดข้อมูล: https://doi.org/10.5281/zenodo.20539026