Skip to main content
Top

2024 | OriginalPaper | Chapter

The Effects of Soft Assertion on Spectrum-Based Fault Localization

Authors : Kouhei Mihara, Shinsuke Matsumoto, Shinji Kusumoto

Published in: Product-Focused Software Process Improvement

Publisher: Springer Nature Switzerland

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

search-config
loading …

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.

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!

Footnotes
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%.
 
Literature
1.
go back to reference 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)CrossRef 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)CrossRef
2.
go back to reference 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) 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)
3.
go back to reference 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) 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)
4.
go back to reference Gazzola, L., Micucci, D., Mariani, L.: Automatic software repair: a survey. IEEE Trans. Softw. Eng. 45(1), 34–67 (2019)CrossRef Gazzola, L., Micucci, D., Mariani, L.: Automatic software repair: a survey. IEEE Trans. Softw. Eng. 45(1), 34–67 (2019)CrossRef
5.
go back to reference 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) 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)
6.
go back to reference 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) 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)
7.
go back to reference 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) 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)
8.
go back to reference 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) 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)
9.
go back to reference 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) 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)
10.
go back to reference 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) 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)
11.
go back to reference 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) 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)
12.
go back to reference 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) 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.
go back to reference 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)CrossRef 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)CrossRef
14.
go back to reference 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)CrossRef 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)CrossRef
Metadata
Title
The Effects of Soft Assertion on Spectrum-Based Fault Localization
Authors
Kouhei Mihara
Shinsuke Matsumoto
Shinji Kusumoto
Copyright Year
2024
DOI
https://doi.org/10.1007/978-3-031-49266-2_26

Premium Partner