Navigation auf zora.uzh.ch

Search ZORA

ZORA (Zurich Open Repository and Archive)

Fine-grained just-in-time defect prediction

Pascarella, Luca; Palomba, Fabio; Bacchelli, Alberto (2019). Fine-grained just-in-time defect prediction. Journal of Systems and Software, 150:22-36.

Abstract

Defect prediction models focus on identifying defect-prone code elements, for example to allow practitioners to allocate testing resources on specific subsystems and to provide assistance during code reviews. While the research community has been highly active in proposing metrics and methods to predict defects on long-term periods (i.e.,at release time), a recent trend is represented by the so-called short-term defect prediction (i.e.,at commit-level). Indeed, this strategy represents an effective alternative in terms of effort required to inspect files likely affected by defects. Nevertheless, the granularity considered by such models might be still too coarse. Indeed, existing commit-level models highlight an entire commit as defective even in cases where only specific files actually contain defects.

In this paper, we first investigate to what extent commits are partially defective; then, we propose a novel fine-grained just-in-time defect prediction model to predict the specific files, contained in a commit, that are defective. Finally, we evaluate our model in terms of (i) performance and (ii) the extent to which it decreases the effort required to diagnose a defect. Our study highlights that: (1) defective commits are frequently composed of a mixture of defective and non-defective files, (2) our fine-grained model can accurately predict defective files with an AUC-ROC up to 82% and (3) our model would allow practitioners to save inspection efforts with respect to standard just-in-time techniques.

Additional indexing

Item Type:Journal Article, refereed, original work
Communities & Collections:03 Faculty of Economics > Department of Informatics
Dewey Decimal Classification:000 Computer science, knowledge & systems
Scopus Subject Areas:Physical Sciences > Software
Physical Sciences > Information Systems
Physical Sciences > Hardware and Architecture
Scope:Discipline-based scholarship (basic research)
Language:English
Date:2019
Deposited On:27 Jan 2021 14:38
Last Modified:24 Mar 2025 02:35
Publisher:Elsevier
ISSN:0164-1212
OA Status:Green
Publisher DOI:https://doi.org/10.1016/j.jss.2018.12.001
Other Identification Number:merlin-id:20245
Download PDF  'Fine-grained just-in-time defect prediction'.
Preview
  • Content: Accepted Version
  • Licence: Creative Commons: Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)

Metadata Export

Statistics

Citations

Dimensions.ai Metrics
99 citations in Web of Science®
113 citations in Scopus®
Google Scholar™

Altmetrics

Downloads

249 downloads since deposited on 27 Jan 2021
53 downloads since 12 months
Detailed statistics

Authors, Affiliations, Collaborations

Similar Publications