A family of experiments on test-driven development
Open accessThe DOI matches its Crossref record; 56 of the 57 references it cites were found in a registry or an index.
Abstract
Test-driven development (TDD) is an agile software development approach that has been widely claimed to improve software quality. However, the extent to which TDD improves quality appears to be largely dependent upon the characteristics of the study in which it is evaluated (e.g., the research method, participant type, programming environment, etc.). The particularities of each study make the aggregation of results untenable. The goal of this paper is to: increase the accuracy and generalizability of the results achieved in isolated experiments on TDD, provide joint conclusions on the performance of TDD across different industrial and academic settings, and assess the extent to which the characteristics of the experiments affect the quality-related performance of TDD. We conduct a family of 12 experiments on TDD in academia and industry. We aggregate their results by means of meta-analysis. We perform exploratory analyses to identify variables impacting the quality-related performance of TDD. TDD novices achieve a slightly higher code quality with iterative test-last development (i.e., ITL, the reverse approach of TDD) than with TDD. The task being developed largely determines quality. The programming environment, the order in which TDD and ITL are applied, or the learning effects from one development approach to another do not appear to affect quality. The quality-related performance of professionals using TDD drops more than for students. We hypothesize that this may be due to their being more resistant to change and potentially less motivated than students. Previous studies seem to provide conflicting results on TDD performance (i.e., positive vs. negative, respectively). We hypothesize that these conflicting results may be due to different study durations, experiment participants being unfamiliar with the TDD process, or case studies comparing the performance achieved by TDD vs. the control approach (e.g., the waterfall model), each applied to develop a different system. Further experiments with TDD experts are needed to validate these hypotheses.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The text we found for this paper looks like another document, so the self-check wasn’t run.
Citations
Cites
Cochrane Handbook for Systematic Reviews of Interventions: Cochrane Book Series
(2008) · doi:10.1002/9780470712184 · Cited by 25,048 · cited 1×
“6 Throughout the rest of the paper we refer to the treatment—terminology commonly used in experimental design and data analysis [11,23,26,58]—and the development approach (i.”
Method(2017) · Cited by 16,319
Experimental Design and Data Analysis for Biologists
Quinn, G. P., & Keough, M. J. (2002) · doi:10.1017/cbo9780511806384 · Cited by 10,674 · cited 2×
“, points with abnormally high X values—in our case, reported experience levels) that pull the regression lines towards each other, especially if sample size is small [41].”
BackgroundKruger, J., & Dunning, D. (1999) · Journal of Personality and Social Psychology · doi:10.1037/0022-3514.77.6.1121 · Cited by 7,731
Likert scales, levels of measurement, and the “laws” of statistics
Norman, G. (2010) · Advances in Health Sciences Education · doi:10.1007/s10459-010-9222-y · Cited by 4,850 · cited 1×
“This approach is typically followed in other disciplines (Norman 2010).”
BackgroundMeta-Analytic Procedures for Social Research
Rosenthal, R. (1991) · doi:10.4135/9781412984997 · Cited by 4,635
Experimentation in Software Engineering
Wohlin, C., Runeson, P., Höst, M., Ohlsson, M. C., Regnell, B., & Wesslén, A. (2012) · doi:10.1007/978-3-642-29044-2 · Cited by 4,460 · cited 5×
“The research method according to Wohlin et. al.’s definitions (Wohlin et al. 2012): – Surveys: empirical studies that collect information from or about people to describe, compare or explain their knowledge, attitudes and behavior For us, the defining characteristic of surveys is that their results…”
BackgroundMethodInfluentialMeta-Analytic Procedures for Social Research.
Metcalfe, A., & Rosenthal, R. (1994) · The Statistician · doi:10.2307/2348600 · Cited by 4,249
(2011) · Cited by 2,025
The Importance of the Normality Assumption in Large Public Health Data Sets
Lumley, T., Diehr, P., Emerson, S., & Chen, L. (2002) · Annual Review of Public Health · doi:10.1146/annurev.publhealth.23.100901.140546 · Cited by 1,803
Research works printed but not linked: 4
- Borenstein M, Hedges L V, Higgins JPT, Rothstein H R (2011) Introduction to meta-analysis. Wiley
- Kollanus S (2010) Test-driven development-still a promising approach? In: Quality of Information and Communications Technology (QUATIC), 2010 Seventh International Conference on the. , pp 403–408
- Martin CR (2001) Advanced principles, patterns and process of software development. Prentice Hall
- Santos A, Vegas S, Oivo M, Juristo N (2018c) Guidelines for analyzing families of experiments in SE. Submitted to IEEE Transactions on Software Engineering
Cited by
How Developers Engineer Test Cases: An Observational Study
Aniche, M. F., Treude, C., & Zaidman, A. (2021) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2021.3129889 · Cited by 83
“Test-driven development (TDD) is an agile software development approach in which software developed in small iterative testing-coding cycles [61].”
MethodUsing the SOCIO Chatbot for UML Modelling: A Family of Experiments
Ren, R., Castro, J. W., Santos, A., Dieste, Ó., & Acuña, S. T. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2022.3150720 · Cited by 22
“We acknowledge that, although the experimental material was translated into the participants’ native language to make them feel comfortable, the self-assessment questions may not accurately capture their background [64], [65].”
BackgroundSelf-citationFuzzing microservices: A series of user studies in industry on industrial systems with EvoMaster
Zhang, M., Arcuri, A., Li, Y., Liu, Y., Xue, K., Wang, Z., Huo, J., & Huang, W. (2025) · Science of Computer Programming · doi:10.1016/j.scico.2025.103322 · Cited by 31
“Five ‘‘toy tasks’’ [62] were used for the experiments.”
Gamification in Test-Driven Development Practice
Ren, W., & BARRETT, S. (2023) · doi:10.1145/3617553.3617889 · Cited by 17
“Additionally, [51] found a strong correlation between TDD behaviors and software maintain-ability.”
BackgroundFerreira, J. M., Rodríguez, F. D., Santos, A., Dieste, Ó., Acuña, S. T., & Juristo, N. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2022.3149586 · Cited by 36
“Another family of experiments evaluated whether the use of test-driven development (TDD) improves software product quality [50].”
BackgroundSelf-citationDoes agile methodology fit all characteristics of software projects? Review and analysis
Itzik, D., & Roy, G. (2023) · Empirical Software Engineering · doi:10.1007/s10664-023-10334-7 · Cited by 22
Empirical Formal Methods: Guidelines for Performing Empirical Studies on Formal Methods
ter Beek, M. H., & Ferrari, A. (2022) · Software · doi:10.3390/software1040017 · Cited by 16
Affective reactions and test-driven development: Results from three experiments and a survey
Baldassarre, M. T., Caivano, D., Fucci, D., Romano, S., & Scanniello, G. (2022) · Journal of Systems and Software · doi:10.1016/j.jss.2021.111154 · Cited by 9
Self-citationTestability-driven development: An improvement to the TDD efficiency
Parsa, S. A., Nasrabadi, M. Z., & Turhan, B. (2024) · Computer Standards & Interfaces · doi:10.1016/j.csi.2024.103877 · Cited by 10
Self-citationGenerative Artificial Intelligence for Test-Driven Development: GAI4- TDD
Cassieri, P., Romano, S., & Scanniello, G. (2024) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner60148.2024.00098 · Cited by 11
“Finally, Santos et al. [22] conducted a family of 12 experiments without observing any impact of TDD on functional quality.”
Self-citationAutomation of Test Skeletons Within Test-Driven Development Projects
Ölmez, M. M., & Gehringer, E. F. (2024) · IEEE International Conference on Software Engineering Education and Training (CSEE&T) · doi:10.1109/cseet62301.2024.10663016 · Cited by 7
“The challenges and benefits of implementing TDD have been discussed, considering factors such as participant experience and task complexity [5].”
BackgroundWhen to Let the Developer Guide: Trade-offs Between Open and Guided Test Amplification
Brandt, C., Wang, D., & Zaidman, A. (2023) · IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM) · doi:10.1109/scam59687.2023.00032 · Cited by 4
“From the participants reflecting on which approach is more helpful to generate tests (Q16), we learned that the user-guided version is better suited when they write tests in conjunction with the production code, also called test-guided development [3], [13].”
BackgroundEffect of requirements specification using native language on external software quality
Uyaguari, F., Guevara‐Vega, C., Quiña‐Mera, A., Uyaguari, A., & Acosta, C. (2023) · IET Software · doi:10.1049/sfw2.12124 · Cited by 3
Self-citationTest-Driven Development and Embedded Systems: An Exploratory Investigation
Esposito, M., Romano, S., & Scanniello, G. (2023) · Euromicro Conference on Software Engineering and Advanced Applications (SEAA) · doi:10.1109/seaa60479.2023.00045 · Cited by 3
“…the claimed benefits of TDD—including increased external quality and developers’ productivity, which we investigated in our study—have been the subject of different primary studies ( e.g., [11], [12]), whose results have been also gathered and combined in secondary studies ( e.g., [13]–[17]).”
BackgroundResultSelf-citationAgha, D., Sohail, R., Meghji, A. F., Qaboolio, R., & Bhatti, S. (2023) · VAWKUM Transactions on Computer Sciences · doi:10.21015/vtcs.v11i1.1494 · Cited by 3
On the use of Test-Driven Development for Embedded Systems
Cassieri, P., Esposito, M., Romano, S., & Scanniello, G. (2025) · Information and Software Technology · doi:10.1016/j.infsof.2025.107779 · Cited by 1
Self-citationThe Way of Types: A Report on Developer Experience with Type-Driven Development
Juhošová, S., Zaidman, A., & Cockx, J. (2026) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1145/3794763.3794812 · Cited by 2
Confirmation Bias and Time Pressure: A Family of Experiments in Software Testing
Salman, I., Turhan, B., Ramač, R., & Mandić, V. (2023) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2023.3330400 · Cited by 5
“We refer to them as a family of experiments because all experiments are similar replications with the common objective [21], [22], which allows us to investigate whether contextual variables affect the results [23], [24].”
MethodSelf-citationGuidelines for using financial incentives in software-engineering experimentation
Krüger, J., Çalıklı, G., Bershadskyy, D., Otto, S., Zabel, S., & Heyer, R. (2024) · Empirical Software Engineering · doi:10.1007/s10664-024-10517-w · Cited by 3
Does Treatment Adherence Impact Experiment Results in TDD?
Karac, I., Panach, J. I., Turhan, B., & Juristo, N. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3497332 · Cited by 1
Self-citationA Two-stage Method of Synchronization Prediction Framework in TDD
Hsieh, C.-H., & Wang, Z. (2021) · Arabian Journal for Science and Engineering · doi:10.1007/s13369-021-06207-0
Farooq, M. S., & TAHIR, E. F. (2021) · VFAST Transactions on Software Engineering · doi:10.21015/vtse.v9i4.972
Relevant Information in TDD Experiment Reporting
Uyaguari, F., Acuña, S. T., Castro, J. W., Fucci, D., Dieste, Ó., & Vegas, S. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3688837
“We conducted a number of TDD experiments [16, 22, 63, 64] and observed that the use of one or other procedure/instrument affects the external quality measurement [17].”
Self-citationLemos, O. A. L., Silveira, F. F., Ferrari, F. C., Silva, T., Guerra, E., & Garcia, A. (2024) · Software Quality Journal · doi:10.1007/s11219-024-09682-4 · Cited by 1
“Santos et al. (2021) conducted experiments to compare TDD with control approaches, primarily the waterfall model, regarding software quality.”
AI Software Project Management Tools
Ranković, N., Ranković, D., Ivanović, M. D., & Lazić, L. (2024) · Artificial intelligence-enhanced software and systems engineering · doi:10.1007/978-3-031-76572-8_7
Raura, G., C., E. R. F., & Dieste, Ó. (2025) · Congresso Ibero-Americano em Engenharia de Software (CIbSE) · doi:10.5753/cibse.2025.35300
Automating Software Test Case Generation with Pre-trained Large Language Models
Imane, M., Hafidi, I., & Najib, M. (2025) · International Conference on Electrical, Computer, Communications and Mechatronics Engineering (ICECCME) · doi:10.1109/iceccme64568.2025.11277902
“Moreover, these methods do not align well with Test-Driven Development (TDD) principles[32], which require writing test cases based on specifications before code development.”
Generating REST API Tests With Descriptive Names: Practitioner Surveys and Industrial Case StudyPreprint
Garrett, P., Galeotti, J. P., Arcuri, A., Poth, A., & Rrjolli, O. (2026) · SSRN Electronic Journal · doi:10.2139/ssrn.6257117
On the emergence of testing strategies: A socio-technical grounded theory
Swillus, M., Hoda, R., & Zaidman, A. (2026) · Empirical Software Engineering · doi:10.1007/s10664-026-10828-0 · Cited by 7
“Software testing is seen as a means to increase quality and efficiency, and as a tool that can steer the technical design of software projects (Santos et al., 2021).”
A Multi-Study Evaluation into Generative Artificial Intelligence for Test-Driven Development
Cassieri, P., Romano, S., Lenarduzzi, V., Taibi, D., & Scanniello, G. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3828553
“…productivity and improved software quality (both internal and external), and past research has provided empirical evidence supporting these claimed benefits [9, 27, 44, 48, 56], practicing TDD consistently remains challenging, with the Red and Refactoring phases often neglected [2, 20, 51, 52, 57].”
Self-citation
Metadata
- Authors
- Santos, A., Vegas, S., Dieste, O., Uyaguari, F., Tosun, A., Fucci, D., Turhan, B., Scanniello, G., Romano, S., Karac, I., Kuhrmann, M., Mandić, V., Ramač, R., Pfahl, D., Engblom, C., Kyykka, J., Rungi, K., Palomeque, C., Spisak, J., Oivo, M., & Juristo, N.
- Affiliations
- Universidad Politécnica de Madrid (ES)
- Istanbul Technical University (TR)
- Blekinge Institute of Technology (SE)
- University of Oulu (FI)
- University of Basilicata (IT)
- University of Bari Aldo Moro (IT)
- University of Passau (DE)
- University of Novi Sad (RS)
- University of Tartu (EE)
- Ericsson (Finland) (FI)
- Corresponding author
- Vegas, Sira
- ORCID
- Venue
- Empirical Software Engineering
- Published
- 2021-03-23
- Volume
- 26
- Issue
- 3
- ISSN
- 1382-3256 (ISSN-L)
- 1573-7616
- OpenAlex
- W3109605734
- Cited by
- 30
- References
- 57
- Citations by year
- 2026: 4 · 2025: 4 · 2024: 8 · 2023: 7 · 2022: 3 · 2021: 4
- FWCI
- 4.97
- Type
- journal article
- Language
- en
- Open access
- green
- oa.upm.es
- Licence
- cc-by
- www.springer.com/tdm (tdm)
- www.springer.com/tdm (vor)
- Locations
- Empirical Software Engineering (publishedVersion)
- Hispana (acceptedVersion, cc-by)
- arXiv (Cornell University) (submittedVersion)
- Archivo Digital UPM (Universidad Politécnica de Madrid) (submittedVersion, cc-by)
- Reutlingen University Academic Bibliography (Reutlingen University) (submittedVersion)
- Istanbul Technical University Academic Open Archive (Istanbul Technical University) (submittedVersion)
- arXiv (Cornell University)
- Funders
- Ministerio de Ciencia, Innovación y Universidades (PGC2018-097265-B-I00)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Techniques and Practices
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
- Keywords
- test-driven development, code quality, learning effects, agile software development, software quality
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.