Causal Inference for the Effect of Code Coverage on Bug Introduction

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Schulte, Lukas, Fraser, Gordon, Herbold, Steffen
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915771392720896
author Schulte, Lukas
Fraser, Gordon
Herbold, Steffen
author_facet Schulte, Lukas
Fraser, Gordon
Herbold, Steffen
contents Context: Code coverage is widely used as a software quality assurance measure. However, its effect, and specifically the advisable dose, are disputed in both the research and engineering communities. Prior work reports only correlational associations, leaving results vulnerable to confounding factors. Objective: We aim to quantify the causal effect of code coverage (exposure) on bug introduction (outcome) in the context of mature JavaScript and TypeScript open source projects, addressing both the overall effect and its variance across coverage levels. Method: We construct a causal directed acyclic graph to identify confounders within the software engineering process, modeling key variables from the source code, issue- and review systems, and continuous integration. Using generalized propensity score adjustment, we will apply doubly robust regression-based causal inference for continuous exposure to a novel dataset of bug-introducing and non-bug-introducing changes. We estimate the average treatment effect and dose-response relationship to examine potential non-linear patterns (e.g., thresholds or diminishing returns) within the projects of our dataset.
format Preprint
id arxiv_https___arxiv_org_abs_2602_03585
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Causal Inference for the Effect of Code Coverage on Bug Introduction
Schulte, Lukas
Fraser, Gordon
Herbold, Steffen
Software Engineering
Context: Code coverage is widely used as a software quality assurance measure. However, its effect, and specifically the advisable dose, are disputed in both the research and engineering communities. Prior work reports only correlational associations, leaving results vulnerable to confounding factors. Objective: We aim to quantify the causal effect of code coverage (exposure) on bug introduction (outcome) in the context of mature JavaScript and TypeScript open source projects, addressing both the overall effect and its variance across coverage levels. Method: We construct a causal directed acyclic graph to identify confounders within the software engineering process, modeling key variables from the source code, issue- and review systems, and continuous integration. Using generalized propensity score adjustment, we will apply doubly robust regression-based causal inference for continuous exposure to a novel dataset of bug-introducing and non-bug-introducing changes. We estimate the average treatment effect and dose-response relationship to examine potential non-linear patterns (e.g., thresholds or diminishing returns) within the projects of our dataset.
title Causal Inference for the Effect of Code Coverage on Bug Introduction
topic Software Engineering
url https://arxiv.org/abs/2602.03585