Skip to main content

2024 | OriginalPaper | Buchkapitel

The Effects of Soft Assertion on Spectrum-Based Fault Localization

verfasst von : Kouhei Mihara, Shinsuke Matsumoto, Shinji Kusumoto

Erschienen in: Product-Focused Software Process Improvement

Verlag: Springer Nature Switzerland

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

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.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

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!

Fußnoten
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%.
 
Literatur
1.
Zurück zum Zitat 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.
Zurück zum Zitat 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.
Zurück zum Zitat 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.
Zurück zum Zitat 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.
Zurück zum Zitat 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.
Zurück zum Zitat 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.
Zurück zum Zitat 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.
Zurück zum Zitat 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.
Zurück zum Zitat 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.
Zurück zum Zitat 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.
Zurück zum Zitat 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.
Zurück zum Zitat 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.
Zurück zum Zitat 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.
Zurück zum Zitat 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
Metadaten
Titel
The Effects of Soft Assertion on Spectrum-Based Fault Localization
verfasst von
Kouhei Mihara
Shinsuke Matsumoto
Shinji Kusumoto
Copyright-Jahr
2024
DOI
https://doi.org/10.1007/978-3-031-49266-2_26

Premium Partner