Skip to main content
Top

2019 | OriginalPaper | Chapter

Evaluation of the Prediction-Based Approach to Cost Reduction in Mutation Testing

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

Mutation testing is the most effective technique for assessing the quality of test suites, but it is also very expensive in terms of computational costs. The cost arises from the need to generate and execute a large number of so called mutants. The paper presents and evaluates a machine learning approach to dealing with the issue of limiting the number of executed mutants. The approach uses classification algorithm to predict mutants execution results for a subset of the generated mutants without their execution. The evaluation of the approach takes into consideration two aspects: accuracy of the predicted results and stability of prediction. In the paper the details of the evaluation experiment and its results are presented and discussed. The approach is tested on four examples having different number of mutants ranging from 90 to over 300. The obtained results indicate that the predicted value of the mutation score is consistently higher then the actual one thus allowing for using the results with high confidence.

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literature
1.
go back to reference Acree, A.T.: On Mutation. PhD Thesis, Georgia Institute of Technology, Atlanta, Georgia (1980) Acree, A.T.: On Mutation. PhD Thesis, Georgia Institute of Technology, Atlanta, Georgia (1980)
2.
go back to reference Andrews, J.H., Briand, L.C., Labiche, Y.: Is mutation an appropriate tool for testing experiments? In: Proceedings of the ICSE05, pp. 402–411. IEEE (2005) Andrews, J.H., Briand, L.C., Labiche, Y.: Is mutation an appropriate tool for testing experiments? In: Proceedings of the ICSE05, pp. 402–411. IEEE (2005)
3.
go back to reference DeMillo, R.A., Lipton, R.J., Sayward, F.G.: Hints on test data selection: help for the practicing programmer. Computer 11(4), 34–41 (1978)CrossRef DeMillo, R.A., Lipton, R.J., Sayward, F.G.: Hints on test data selection: help for the practicing programmer. Computer 11(4), 34–41 (1978)CrossRef
4.
go back to reference Howden, W.E.: Weak mutation testing and completeness of test sets. IEEE Trans. Softw. Eng. 8, 371–379 (1982)CrossRef Howden, W.E.: Weak mutation testing and completeness of test sets. IEEE Trans. Softw. Eng. 8, 371–379 (1982)CrossRef
5.
go back to reference Ji, C., Chen, Z., Xu, B., Zhao, Z.: A novel method of mutation clustering based on domain analysis. In: Proceedings of the 21st ICSEKE09, Boston, USA (2009) Ji, C., Chen, Z., Xu, B., Zhao, Z.: A novel method of mutation clustering based on domain analysis. In: Proceedings of the 21st ICSEKE09, Boston, USA (2009)
6.
go back to reference Jia, Y., Harman, M.: An analysis and survey of the development of mutation testing. IEEE Trans. Softw. Eng. 37, 649–678 (2011)CrossRef Jia, Y., Harman, M.: An analysis and survey of the development of mutation testing. IEEE Trans. Softw. Eng. 37, 649–678 (2011)CrossRef
7.
go back to reference Just, R., Jalali, D., Inozemtseva, L., Ernst, M.D., Holmes, R., Fraser, G.: Are mutants a valid substitute for real faults in software testing? In: Proceedings of ACM SIGSOFT Symposium on the Foundations of Software Engineering, Hong Kong, China, pp. 654–665 (2014) Just, R., Jalali, D., Inozemtseva, L., Ernst, M.D., Holmes, R., Fraser, G.: Are mutants a valid substitute for real faults in software testing? In: Proceedings of ACM SIGSOFT Symposium on the Foundations of Software Engineering, Hong Kong, China, pp. 654–665 (2014)
8.
go back to reference Ma, Y.-S., Kim, S.-W.: Mutation testing cost reduction by clustering overlapped mutants. J. Syst. Softw. 115, 18–30 (2016)CrossRef Ma, Y.-S., Kim, S.-W.: Mutation testing cost reduction by clustering overlapped mutants. J. Syst. Softw. 115, 18–30 (2016)CrossRef
9.
go back to reference Ma, Y., Offutt, J., Kwon, Y.R.: MuJava: a mutation system for Java. In: Proceedings of ICSE06, Shanghai, China, pp. 827–830 (2006) Ma, Y., Offutt, J., Kwon, Y.R.: MuJava: a mutation system for Java. In: Proceedings of ICSE06, Shanghai, China, pp. 827–830 (2006)
10.
go back to reference Mathur, A.P., Krauser, E.W.: Mutant Unification for Improved Vectorization. Purdue University, West Lafayette, Indiana, Technical report SERC-TR-14-P (1988) Mathur, A.P., Krauser, E.W.: Mutant Unification for Improved Vectorization. Purdue University, West Lafayette, Indiana, Technical report SERC-TR-14-P (1988)
11.
go back to reference Mitchell, T.: Machine Learning. Mcgraw-Hill Education, New York City (1997)MATH Mitchell, T.: Machine Learning. Mcgraw-Hill Education, New York City (1997)MATH
12.
go back to reference Myers, G., Sandler, C., Badgett, T.: The Art of Software Testing. Wiley, Hoboken (2011) Myers, G., Sandler, C., Badgett, T.: The Art of Software Testing. Wiley, Hoboken (2011)
13.
go back to reference Offutt, A.J., Rothermel, G., Zapf, C.: An experimental evaluation of selective mutation. In: Proceedings of ICSE, pp. 100–107 (1993) Offutt, A.J., Rothermel, G., Zapf, C.: An experimental evaluation of selective mutation. In: Proceedings of ICSE, pp. 100–107 (1993)
14.
go back to reference Strug, J., Strug, B.: Machine learning approach in mutation testing. In: LNCS, vol. 764, pp. 200–214 (2012) Strug, J., Strug, B.: Machine learning approach in mutation testing. In: LNCS, vol. 764, pp. 200–214 (2012)
15.
go back to reference Strug, J., Strug, B.: Classifying mutants with decomposition Kernel. In: Proceedings of ICAISC2016, LNCS, vol. 9692, pp. 644–654 (2016) Strug, J., Strug, B.: Classifying mutants with decomposition Kernel. In: Proceedings of ICAISC2016, LNCS, vol. 9692, pp. 644–654 (2016)
16.
go back to reference Strug, J., Strug, B.: Using classification for cost reduction of applying mutation testing. In: Proceedings of FedCSIS2017, pp. 99–108 (2017) Strug, J., Strug, B.: Using classification for cost reduction of applying mutation testing. In: Proceedings of FedCSIS2017, pp. 99–108 (2017)
17.
go back to reference Strug, J., Strug, B.: Cost reduction in mutation testing with bytecode-level mutants classification. In: Proceedings of ICAISC2018, LNCS, vol. 10841, pp. 714–723. Springer (2018) Strug, J., Strug, B.: Cost reduction in mutation testing with bytecode-level mutants classification. In: Proceedings of ICAISC2018, LNCS, vol. 10841, pp. 714–723. Springer (2018)
18.
go back to reference Thierry, T.C., Papadakis, M., Traon, Y.L., Harman, M.: Empirical study on mutation, statement and branch coverage fault revelation that avoids the unreliable clean program assumption. In: Proceedings of IEEE/ACM ICSE17, Buenos Aires, Argentina, pp. 597–608 (2017) Thierry, T.C., Papadakis, M., Traon, Y.L., Harman, M.: Empirical study on mutation, statement and branch coverage fault revelation that avoids the unreliable clean program assumption. In: Proceedings of IEEE/ACM ICSE17, Buenos Aires, Argentina, pp. 597–608 (2017)
19.
go back to reference Usaola, M.P., Mateo, P.R.: Mutation testing cost reduction techniques: a survey. IEEE Softw. 27(3), 80–86 (2010)CrossRef Usaola, M.P., Mateo, P.R.: Mutation testing cost reduction techniques: a survey. IEEE Softw. 27(3), 80–86 (2010)CrossRef
20.
go back to reference Wong, W.E., Mathur, A.P.: Reducing the cost of mutation testing: an empirical study. JSS 31(3), 185–196 (1995) Wong, W.E., Mathur, A.P.: Reducing the cost of mutation testing: an empirical study. JSS 31(3), 185–196 (1995)
21.
go back to reference Zhang, J., Zhang, L., Harman, M., Hao, D., Jia, Y., Zhang, L.: Predictive mutation testing. In: Proceedings of ISSTA2016, Saarbrücken, Germany, pp. 342–353 (2016) Zhang, J., Zhang, L., Harman, M., Hao, D., Jia, Y., Zhang, L.: Predictive mutation testing. In: Proceedings of ISSTA2016, Saarbrücken, Germany, pp. 342–353 (2016)
Metadata
Title
Evaluation of the Prediction-Based Approach to Cost Reduction in Mutation Testing
Authors
Joanna Strug
Barbara Strug
Copyright Year
2019
DOI
https://doi.org/10.1007/978-3-319-99996-8_31

Premium Partner