Skip to main content

2024 | OriginalPaper | Buchkapitel

Do Exceptional Behavior Tests Matter on Spectrum-Based Fault Localization?

verfasst von : Haruka Yoshioka, Yoshiki Higo, Shinsuke Matsumoto, Shinji Kusumoto, Shinji Itoh, Phan Thi Thanh Huyen

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

Debugging is a heavy task in software development. Computer-assisted debugging is expected to reduce these costs. Spectrum-based Fault Localization (SBFL) is one of the most actively studied computer-assisted debugging techniques. SBFL aims to identify the location of faulty code elements based on the execution paths of tests. Previous research reports that the accuracy of SBFL is affected by test types, such as flaky tests. Our research focuses on exceptional behavior tests to reveal the impact of such tests on SBFL. Since separating exceptional handling from normal control flow enables developers to increase program robustness, we think the execution paths of exceptional behavior tests are different from the ones of normal control flow tests, which means that the differences significantly affect the accuracy of SBFL. In this study, we investigated the accuracy of SBFL on two types of faults: faults that occurred in the real software development process and artificially generated faults. As a result, our study reveals that SBFL tends to be more accurate when all failing tests are exceptional behavior tests than when failing tests include no exceptional behavior tests.

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!

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 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 International Conference on Automated Software Engineering, pp. 76–87 (2009)
3.
Zurück zum Zitat Dalton, F., Ribeiro, M., Pinto, G., Fernandes, L., Gheyi, R., Fonseca, B.: Is exceptional behavior testing an exception? an empirical assessment using java automated tests. In: Proceedings of International Conference on Evaluation and Assessment in Software Engineering, pp. 170–179 (2020) Dalton, F., Ribeiro, M., Pinto, G., Fernandes, L., Gheyi, R., Fonseca, B.: Is exceptional behavior testing an exception? an empirical assessment using java automated tests. In: Proceedings of International Conference on Evaluation and Assessment in Software Engineering, pp. 170–179 (2020)
4.
Zurück zum Zitat Garcia, A.F., Rubira, C.M., Romanovsky, A., Xu, J.: A comparative study of exception handling mechanisms for building dependable object-oriented software. J. Syst. Softw. 59(2), 197–222 (2001)CrossRef Garcia, A.F., Rubira, C.M., Romanovsky, A., Xu, J.: A comparative study of exception handling mechanisms for building dependable object-oriented software. J. Syst. Softw. 59(2), 197–222 (2001)CrossRef
5.
Zurück zum Zitat Higo, Y., et al.: kGenProg: a high-performance, high-extensibility and high-portability APR system. In: Proceedings of Asia-Pacific Software Engineering Conference, pp. 697–698 (2018) Higo, Y., et al.: kGenProg: a high-performance, high-extensibility and high-portability APR system. In: Proceedings of Asia-Pacific Software Engineering Conference, pp. 697–698 (2018)
6.
Zurück zum Zitat Jin, W., Orso, A.: BugRedux: reproducing field failures for in-house debugging. In: Proceedings of International Conference on Software Engineering, pp. 474–484 (2012) Jin, W., Orso, A.: BugRedux: reproducing field failures for in-house debugging. In: Proceedings of International Conference on Software Engineering, pp. 474–484 (2012)
7.
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 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 International Symposium on Software Testing and Analysis, pp. 437–440 (2014)
8.
Zurück zum Zitat Kochhar, P.S., Xia, X., Lo, D., Li, S.: Practitioners’ expectations on automated fault localization. In: Proceedings of International Symposium on Software Testing and Analysis, pp. 165–176 (2016) Kochhar, P.S., Xia, X., Lo, D., Li, S.: Practitioners’ expectations on automated fault localization. In: Proceedings of International Symposium on Software Testing and Analysis, pp. 165–176 (2016)
9.
Zurück zum Zitat Lei, Y., Xie, H., Zhang, T., Yan, M., Xu, Z., Sun, C.: Feature-FL: feature-based fault localization. IEEE Trans. Reliab. 71(1), 264–283 (2022)CrossRef Lei, Y., Xie, H., Zhang, T., Yan, M., Xu, Z., Sun, C.: Feature-FL: feature-based fault localization. IEEE Trans. Reliab. 71(1), 264–283 (2022)CrossRef
10.
Zurück zum Zitat Li, X., Li, W., Zhang, Y., Zhang, L.: Deepfl: integrating multiple fault diagnosis dimensions for deep fault localization. In: Proceedings of International Symposium on Software Testing and Analysis, pp. 169–180 (2019) Li, X., Li, W., Zhang, Y., Zhang, L.: Deepfl: integrating multiple fault diagnosis dimensions for deep fault localization. In: Proceedings of International Symposium on Software Testing and Analysis, pp. 169–180 (2019)
11.
Zurück zum Zitat Liu, C., Yan, X., Fei, L., Han, J., Midkiff, S.P.: SOBER: statistical model-based bug localization. In: Proceedings of European Software Engineering Conference Held Jointly with International Symposium on Foundations of Software Engineering, pp. 286–295 (2005) Liu, C., Yan, X., Fei, L., Han, J., Midkiff, S.P.: SOBER: statistical model-based bug localization. In: Proceedings of European Software Engineering Conference Held Jointly with International Symposium on Foundations of Software Engineering, pp. 286–295 (2005)
12.
Zurück zum Zitat Lou, Y., et al.: Can automated program repair refine fault localization? a unified debugging approach. In: Proceedings of International Symposium on Software Testing and Analysis, pp. 75–87 (2020) Lou, Y., et al.: Can automated program repair refine fault localization? a unified debugging approach. In: Proceedings of International Symposium on Software Testing and Analysis, pp. 75–87 (2020)
13.
Zurück zum Zitat Martinez, M., Martin, M.: Ultra-large repair search space with automatically mined templates: the cardumen mode of astor. In: Proceedings of International Symposium on Search Based Software Engineering, pp. 65–86 (2017) Martinez, M., Martin, M.: Ultra-large repair search space with automatically mined templates: the cardumen mode of astor. In: Proceedings of International Symposium on Search Based Software Engineering, pp. 65–86 (2017)
14.
Zurück zum Zitat Pearson, S., et al.: Evaluating and improving fault localization. In: Proceedings of International Conference on Software Engineering, pp. 609–620 (2017) Pearson, S., et al.: Evaluating and improving fault localization. In: Proceedings of International Conference on Software Engineering, pp. 609–620 (2017)
15.
Zurück zum Zitat Qi, Y., Mao, X., Lei, Y., Wang, C.: Using automated program repair for evaluating the effectiveness of fault localization techniques. In: Proceedings of International Symposium on Software Testing and Analysis, pp. 191–201 (2013) Qi, Y., Mao, X., Lei, Y., Wang, C.: Using automated program repair for evaluating the effectiveness of fault localization techniques. In: Proceedings of International Symposium on Software Testing and Analysis, pp. 191–201 (2013)
16.
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: 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: International Conference on Software Analysis, Evolution and Reengineering, pp. 295–306 (2021)
17.
Zurück zum Zitat Tassey, G.: The economic impacts of inadequate infrastructure for software testing (2002) Tassey, G.: The economic impacts of inadequate infrastructure for software testing (2002)
18.
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
19.
Zurück zum Zitat Yuan, Y., Banzhaf, W.: Arja: automated repair of java programs via multi-objective genetic programming. Trans. Softw. Eng. 46(10), 1040–1067 (2020)CrossRef Yuan, Y., Banzhaf, W.: Arja: automated repair of java programs via multi-objective genetic programming. Trans. Softw. Eng. 46(10), 1040–1067 (2020)CrossRef
Metadaten
Titel
Do Exceptional Behavior Tests Matter on Spectrum-Based Fault Localization?
verfasst von
Haruka Yoshioka
Yoshiki Higo
Shinsuke Matsumoto
Shinji Kusumoto
Shinji Itoh
Phan Thi Thanh Huyen
Copyright-Jahr
2024
DOI
https://doi.org/10.1007/978-3-031-49266-2_28

Premium Partner