Skip to main content

The Effects of Soft Assertion on Spectrum-Based Fault Localization

  • Conference paper
  • First Online:
Product-Focused Software Process Improvement (PROFES 2023)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 14483))

  • 345 Accesses

Abstract

This paper investigates the negative effects of soft assertion on the accuracy of Spectrum-based Fault Localization (SBFL). Soft assertion is a kind of test assertion which continues test case execution even after an assertion failure occurs. In general, the execution path becomes longer if the test case fails by a soft assertion. Hence, soft assertion will decrease the accuracy of SBFL which leverages the execution path of failed tests. In this study, we call the change of execution path due to soft assertion as path pollution. Our experimental results show that soft assertion actually reduces the accuracy of SBFL in 35% of faults.

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 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.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.

    The total sum of the individual usage rates is 19.4%. However, since some projects use multiple libraries, the percentage of unique projects using soft assertion is 13.2%.

References

  1. Abreu, R., Zoeteweij, P., Golsteijn, R., van Gemund, A.J.: A practical evaluation of spectrum-based fault localization. J. Syst. Softw. 82(11), 1780–1792 (2009)

    Article  Google Scholar 

  2. Ali, S., Andrews, J.H., Dhandapani, T., Wang, W.: Evaluating the accuracy of fault localization techniques. In: Proceedings of the International Conference on Automated Software Engineering, pp. 76–87 (2009)

    Google Scholar 

  3. Bagheri, B., Rezaalipour, M., Vahidi-Asl, M.: An approach to generate effective fault localization methods for programs. In: Proceedings of the International Conference on Fundamentals of Software Engineering, pp. 244–259 (2019)

    Google Scholar 

  4. Gazzola, L., Micucci, D., Mariani, L.: Automatic software repair: a survey. IEEE Trans. Softw. Eng. 45(1), 34–67 (2019)

    Article  Google Scholar 

  5. Jones, J., Harrold, M., Stasko, J.: Visualization of test information to assist fault localization. In: Proceedings of the International Conference on Software Engineering, pp. 467–477 (2002)

    Google Scholar 

  6. Just, R., Jalali, D., Ernst, M.D.: Defects4J: a database of existing faults to enable controlled testing studies for java programs. In: Proceedings of the International Symposium on Software Testing and Analysis, pp. 437–440 (2014)

    Google Scholar 

  7. Keller, F., Grunske, L., Heiden, S., Filieri, A., van Hoorn, A., Lo, D.: A critical evaluation of spectrum-based fault localization techniques on a large-scale software system. In: Proceedings of the International Conference on Software Quality, Reliability and Security, pp. 114–125 (2017)

    Google Scholar 

  8. Marginean, A., et al.: SapFix: automated end-to-end repair at scale. In: Proceedings of the International Conference on Software Engineering: Software Engineering in Practice, pp. 269–278 (2019)

    Google Scholar 

  9. Parnin, C., Orso, A.: Are automated debugging techniques actually helping programmers? In: Proceedings of the International Symposium on Software Testing and Analysis, pp. 199–209 (2011)

    Google Scholar 

  10. Qin, Y., Wang, S., Liu, K., Mao, X., Bissyandé, T.F.: On the impact of flaky tests in automated program repair. In: Proceedings of the International Conference on Software Analysis, Evolution and Reengineering, pp. 295–306 (2021)

    Google Scholar 

  11. Sasaki, Y., Higo, Y., Matsumoto, S., Kusumoto, S.: SBFL-suitability: a software characteristic for fault localization. In: Proceedings of the International Conference on Software Maintenance and Evolution, pp. 702–706 (2020)

    Google Scholar 

  12. de Souza, H.A., Chaim, M.L., Kon, F.: Spectrum-based software fault localization: a survey of techniques, advances, and challenges. arXiv e-prints p. arXiv:1607.04347 (2016)

  13. Wong, W.E., Gao, R., Li, Y., Abreu, R., Wotawa, F.: A survey on software fault localization. IEEE Trans. Softw. Eng. 42(8), 707–740 (2016)

    Article  Google Scholar 

  14. Xiaobo, Y., Liu, B., Shihai, W.: An analysis on the negative effect of multiple-faults for spectrum-based fault localization. IEEE Access 7, 2327–2347 (2019)

    Article  Google Scholar 

Download references

Acknowledgment

This research was partially supported by JSPS KAKENHI Japan (Grant Number: JP21H04877, JP20H04166, JP21K18302, and JP21K11829).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kouhei Mihara .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Mihara, K., Matsumoto, S., Kusumoto, S. (2024). The Effects of Soft Assertion on Spectrum-Based Fault Localization. In: Kadgien, R., Jedlitschka, A., Janes, A., Lenarduzzi, V., Li, X. (eds) Product-Focused Software Process Improvement. PROFES 2023. Lecture Notes in Computer Science, vol 14483. Springer, Cham. https://doi.org/10.1007/978-3-031-49266-2_26

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-49266-2_26

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-49265-5

  • Online ISBN: 978-3-031-49266-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics