Shift-Left Testing in CI/CD pipelines: An experimental evaluation of defect detection and operational impacts
The increasing speed of software development, driven by the adoption of agile methodologies and coding support tools, intensifies the challenges associated with early defect detection and technical debt management. In this context, the Shift-Left Testing approach proposes moving verification and validation activities to earlier stages of the software development lifecycle by integrating automated tools into continuous integration and continuous delivery (CI/CD) processes. This study aimed to experimentally evaluate the effectiveness of this approach in identifying software defects at earlier development stages, as well as its operational impacts in terms of execution time and alert volume. The research was conducted through a quantitative, paired controlled experiment using the Defects4J benchmark (v3.0.1) across two execution scenarios: a conventional baseline pipeline and an experimental pipeline incorporating automated static analysis tools (PMD and SpotBugs), evaluated over 30 defects equally distributed across Apache Commons Lang, Jsoup, and Gson, covering both buggy and fixed versions across 600 paired comparisons (1,200 individual runs). The results showed that adding static checks increased the median pipeline execution time from 10.39 s to 32.46 s, imposing a paired median overhead of 22.89 s (IQR: 20.46–25.38 s; relative increase of +229.66%). Regarding detection capability, although both tools emitted hundreds of pre-existing alerts per run, technical auditing of the 8 alerts exclusive to buggy versions preliminarily confirmed the detection of only 3 defects (10.0% of the sample), all identified by SpotBugs, while 5 alerts remained inconclusive. It is concluded that static analysis in CI/CD pipelines exhibits a marked asymmetry between temporal overhead and functional defect coverage, supporting its selective and incremental adoption.
Authors
- Mateus Xavier Yamaguti (ORCID: https://orcid.org/0000-0001-9149-8876)
- Filipe Cutri
Institutions
- Centro Universitário Herminio Ometto de Araras (BR)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24690006
- Primary Topic
- Software Testing and Debugging Techniques
- Type
- preprint