Back to the Future! Studying Data Cleanness in Defects4J and its Impact on Fault Localization

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Rafi, Md Nakhla, Chen, An Ran, Chen, Tse-Hsun, Wang, Shaohua
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910560040255488
author Rafi, Md Nakhla
Chen, An Ran
Chen, Tse-Hsun
Wang, Shaohua
author_facet Rafi, Md Nakhla
Chen, An Ran
Chen, Tse-Hsun
Wang, Shaohua
contents For software testing research, Defects4J stands out as the primary benchmark dataset, offering a controlled environment to study real bugs from prominent open-source systems. However, prior research indicates that Defects4J might include tests added post-bug report, embedding developer knowledge and affecting fault localization efficacy. In this paper, we examine Defects4J's fault-triggering tests, emphasizing the implications of developer knowledge of SBFL techniques. We study the timelines of changes made to these tests concerning bug report creation. Then, we study the effectiveness of SBFL techniques without developer knowledge in the tests. We found that 1) 55% of the fault-triggering tests were newly added to replicate the bug or to test for regression; 2) 22% of the fault-triggering tests were modified after the bug reports were created, containing developer knowledge of the bug; 3) developers often modify the tests to include new assertions or change the test code to reflect the changes in the source code; and 4) the performance of SBFL techniques degrades significantly (up to --415% for Mean First Rank) when evaluated on the bugs without developer knowledge. We provide a dataset of bugs without developer insights, aiding future SBFL evaluations in Defects4J and informing considerations for future bug benchmarks.
format Preprint
id arxiv_https___arxiv_org_abs_2310_19139
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Back to the Future! Studying Data Cleanness in Defects4J and its Impact on Fault Localization
Rafi, Md Nakhla
Chen, An Ran
Chen, Tse-Hsun
Wang, Shaohua
Software Engineering
For software testing research, Defects4J stands out as the primary benchmark dataset, offering a controlled environment to study real bugs from prominent open-source systems. However, prior research indicates that Defects4J might include tests added post-bug report, embedding developer knowledge and affecting fault localization efficacy. In this paper, we examine Defects4J's fault-triggering tests, emphasizing the implications of developer knowledge of SBFL techniques. We study the timelines of changes made to these tests concerning bug report creation. Then, we study the effectiveness of SBFL techniques without developer knowledge in the tests. We found that 1) 55% of the fault-triggering tests were newly added to replicate the bug or to test for regression; 2) 22% of the fault-triggering tests were modified after the bug reports were created, containing developer knowledge of the bug; 3) developers often modify the tests to include new assertions or change the test code to reflect the changes in the source code; and 4) the performance of SBFL techniques degrades significantly (up to --415% for Mean First Rank) when evaluated on the bugs without developer knowledge. We provide a dataset of bugs without developer insights, aiding future SBFL evaluations in Defects4J and informing considerations for future bug benchmarks.
title Back to the Future! Studying Data Cleanness in Defects4J and its Impact on Fault Localization
topic Software Engineering
url https://arxiv.org/abs/2310.19139