Skip to main content

An Evaluation of Test Suite Minimization Techniques

  • Conference paper
  • First Online:
Software Quality: Quality Intelligence in Software and Systems Engineering (SWQD 2020)

Part of the book series: Lecture Notes in Business Information Processing ((LNBIP,volume 371))

Included in the following conference series:

Abstract

As a software project evolves over time, the associated test suite usually grows with it. If test suites are not carefully maintained, this can easily result in massive test execution duration, reducing the benefits of regression testing because faults are found later in development or even after release. Test suite minimization aims to combat long running test suites by removing redundant test cases. Previous work mainly evaluates test suite minimization techniques based on comparably small projects, which are less practically relevant. In this paper, we compare four test suite minimization techniques by applying them to several open source software projects and evaluate the results. We find that the size and execution time of all the test suites can be reduced by over 70% on average. However, there is a substantial loss in fault detection capability of, on average, around 12.5%, restricting the applicability of this form of test suite minimization.

This work was partially funded by the German Federal Ministry of Education and Research (BMBF), grant “SOFIE, 01IS18012A”. The responsibility for this article lies with the authors.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://sir.csc.ncsu.edu/php/previewfiles.php.

  2. 2.

    https://github.com/cqse/teamscale-jacoco-agent.

  3. 3.

    http://pitest.org.

  4. 4.

    http://pitest.org/quickstart/mutators/.

  5. 5.

    https://github.com.

References

  1. Andrews, J.H., Briand, L.C., Labiche, Y.: Is mutation an appropriate tool for testing experiments? In: Proceedings of the 27th International Conference on Software Engineering, pp. 402–411. ACM (2005)

    Google Scholar 

  2. Andrews, J.H., Briand, L.C., Labiche, Y., Namin, A.S.: Using mutation analysis for assessing and comparing testing coverage criteria. IEEE Trans. Softw. Eng. 32(8), 608–624 (2006)

    Article  Google Scholar 

  3. Chen, T.Y., MF, L.: Dividing strategies for the optimization of a test suite. Inf. Process. Lett. 60(3), 135–141 (1996)

    Article  MathSciNet  Google Scholar 

  4. Do, H., Rothermel, G.: On the use of mutation faults in empirical assessments of test case prioritization techniques. IEEE Trans. Softw. Eng. 32(9), 733–752 (2006)

    Article  Google Scholar 

  5. Harman, M.: Making the case for MORTO: multi objective regression test optimization. In: 2011 IEEE Fourth International Conference on Software Testing, Verification and Validation Workshops, pp. 111–114. IEEE (2011)

    Google Scholar 

  6. Harrold, M.J., Gupta, R., Soffa, M.L.: A methodology for controlling the size of a test suite. ACM Trans. Softw. Eng. Methodol. (TOSEM) 2(3), 270–285 (1993)

    Article  Google Scholar 

  7. Jeffrey, D., Gupta, N.: Test suite reduction with selective redundancy. In: 21st IEEE International Conference on Software Maintenance (ICSM 2005), pp. 549–558. IEEE (2005)

    Google Scholar 

  8. Jeffrey, D., Gupta, N.: Improving fault detection capability by selectively retaining test cases during test suite reduction. IEEE Trans. Softw. Eng. 33(2), 108–123 (2007)

    Article  Google Scholar 

  9. Jia, Y., Harman, M.: An analysis and survey of the development of mutation testing. IEEE Trans. Softw. Eng. 37(5), 649–678 (2010)

    Article  Google Scholar 

  10. Pan, J., Loudon Tech Center: Procedures for reducing the size of coverage-based test sets. In: Proceedings of International Conference on Testing Computer Software, pp. 111–123. Citeseer (1995)

    Google Scholar 

  11. Papadimitriou, C.H., Steiglitz, K.: Combinatorial Optimization: Algorithms and Complexity. Courier Corporation (1998)

    Google Scholar 

  12. Rothermel, G., Harrold, M.J., Ostrin, J., Hong, C.: An empirical study of the effects of minimization on the fault detection capabilities of test suites. In: Proceedings of the International Conference on Software Maintenance (Cat. No. 98CB36272), pp. 34–43. IEEE (1998)

    Google Scholar 

  13. Rothermel, G., Harrold, M.J., Von Ronne, J., Hong, C.: Empirical studies of test-suite reduction. Softw. Test. Verif. Reliab. 12(4), 219–249 (2002)

    Article  Google Scholar 

  14. Shi, A., Gyori, A., Gligoric, M., Zaytsev, A., Marinov, D.: Balancing trade-offs in test-suite reduction. In: Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering, pp. 246–256. ACM (2014)

    Google Scholar 

  15. Tallam, S., Gupta, N.: A concept analysis inspired greedy algorithm for test suite minimization. ACM SIGSOFT Softw. Eng. Notes 31(1), 35–42 (2006)

    Article  Google Scholar 

  16. Wei, Z., Xiaoxue, W., Xibing, Y., Shichao, C., Wenxin, L., Jun, L.: Test suite minimization with mutation testing-based many-objective evolutionary optimization. In: 2017 International Conference on Software Analysis, Testing and Evolution (SATE), pp. 30–36. IEEE (2017)

    Google Scholar 

  17. Wong, W.E., Horgan, J.R., London, S., Mathur, A.P.: Effect of test set minimization on fault detection effectiveness. Softw. Pract. Exp. 28(4), 347–369 (1998)

    Article  Google Scholar 

  18. Wong, W.E., Horgan, J.R., Mathur, A.P., Pasquini, A.: Test set size minimization and fault detection effectiveness: a case study in a space application. In: Proceedings Twenty-First Annual International Computer Software and Applications Conference (COMPSAC 1997), pp. 522–528. IEEE (1997)

    Google Scholar 

  19. Yoo, S., Harman, M.: Regression testing minimization, selection and prioritization: a survey. Softw. Test. Verif. Reliab. 22(2), 67–120 (2012)

    Article  Google Scholar 

  20. Zhang, L., Marinov, D., Zhang, L., Khurshid, S.: An empirical study of JUnit test-suite reduction. In: 2011 IEEE 22nd International Symposium on Software Reliability Engineering, pp. 170–179. IEEE (2011)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Raphael Noemmer .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Noemmer, R., Haas, R. (2020). An Evaluation of Test Suite Minimization Techniques. In: Winkler, D., Biffl, S., Mendez, D., Bergsmann, J. (eds) Software Quality: Quality Intelligence in Software and Systems Engineering. SWQD 2020. Lecture Notes in Business Information Processing, vol 371. Springer, Cham. https://doi.org/10.1007/978-3-030-35510-4_4

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-35510-4_4

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-35509-8

  • Online ISBN: 978-3-030-35510-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics