ScholarGate
助手
Machine learningSoftware Testing

变异测试

变异测试是一种故障注入技术,由 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/zh/numerical-methods/mutation-testing

ScholarGateMutation Testing (Mutation Testing for Test Adequacy). 于 2026-06-15 检索自 https://scholargate.app/zh/numerical-methods/mutation-testing · 数据集: https://doi.org/10.5281/zenodo.20539026