本文基于语句重要度,提出一种新的变异测试对象选择方法,以减少变异体的数量.首先,给出反映变异测试对象重要性的3个因素;然后,基于这些因素的重要性,建立评价所选测试对象重要性的指标;最后,基于这些指标的值,选出重要度高的语句作为变异测试对象.将所提方法应用于8个基准和工业程序的变异测试,实验结果表明,所提方法在维持很高变异测试充分度的同时,显著提高了变异测试的效率.
Based on the importance of the statement, a novel method of selecting mutation object is proposed so as to reduce mutants. In this method, three factors that reflect the importance of an object are given, and then an index system of evaluating the importance of an object is established based on the importance of these factors. Finally, statements with high importance are selected as the objects to be mutated according to the values of these indexes. The proposed method is applied to test eight benchmark or industrial programs, and the experimental results suggest that the proposed method significantly improves the efficiency of mutation testing with high mutation sufficiency.