A family of experiments on test-driven development
Open accessThe DOI matches its Crossref record; 55 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
An Analysis and Survey of the Development of Mutation Testing
Jia, Y., & Harman, M. (2011) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2010.62 · Cited by 1,745
Meta-analysis and the science of research synthesis
Gurevitch, J., Koricheva, J., Nakagawa, S., & Stewart, G. (2018) · Nature · doi:10.1038/nature25753 · Cited by 1,709
Meta-analysis of individual participant data: rationale, conduct, and reporting
Riley, R. D., Lambert, P. C., & Abo-Zaid, G. (2010) · BMJ · doi:10.1136/bmj.c221 · Cited by 1,701
Schmider, E., Ziegler, M., Danay, E., Beyer, L., & Bühner, M. (2010) · Methodology · doi:10.1027/1614-2241/a000016 · Cited by 1,290 · cited 2×
“We relied upon the robustness of the t-test to departures from normality when analyzing the data of our experiments [48,55,57].”
MethodApplied Mixed Models in Medicine
Brown, H., & Presco, R. (2000) · Technometrics · doi:10.1080/00401706.2000.10485742 · Cited by 1,262 · cited 8×
“, by fitting linear mixed models [11]).”
BackgroundMethodInfluentialUsing the Student's t-test with extremely small sample sizes
de Winter, J. C. F. (2013) · University of Massachusetts Amherst · doi:10.7275/e4r6-dj05 · Cited by 992
Building knowledge through families of experiments
Basili, V. R., Shull, F., & Lanubile, F. (1999) · IEEE Transactions on Software Engineering · doi:10.1109/32.799939 · Cited by 852 · cited 2×
“Families of experiments—a term coined by Basili et al. (1999) for referring to groups of interrelated experiments pursuing the same goal—are on the rise in software engineering (SE) (Santos et al. 2018a).”
BackgroundSoftware Testing Research: Achievements, Challenges, Dreams
Bertolino, A. (2007) · Future of Software Engineering (FOSE '07) · doi:10.1109/fose.2007.25 · Cited by 840 · cited 4×
“As usual in the TDD literature, we measure external quality as the percentage of successful tests in the test battery—or test oracle [8]—that we (i.”
BackgroundInfluentialUnderstanding The New Statistics: Effect Sizes, Confidence Intervals, and Meta-Analysis
Cumming, G. (2013) · Routledge eBooks · doi:10.4324/9780203807002 · Cited by 790
IEEE Transactions on Software Engineering
(1978) · IEEE Transactions on Computers · doi:10.1109/tc.1978.1675097 · Cited by 761
Basics of Software Engineering Experimentation
Juristo, N., & Moreno, A. M. (2001) · Springer eBooks · doi:10.1007/978-1-4757-3304-4 · Cited by 753 · 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.”
MethodSelf-citationSumming up evidence: one answer is not always enough
Lau, J., Ioannidis, J. P., & Schmid, C. H. (1998) · The Lancet · doi:10.1016/s0140-6736(97)08468-7 · Cited by 655
Software Modeling and Measurement: The Goal/Question/Metric Paradigm
Basili, V. R. (1992) · International Linear Collider · Cited by 599
Williams, L. A., & Kessler, R. R. (2007) · CERN Document Server (European Organization for Nuclear Research) · Cited by 550
Evolution of Heterogeneity (I2) Estimates and Their 95% Confidence Intervals in Large Meta-Analyses
Thorlund, K., Imberger, G., Johnston, B. C., Walsh, M., Awad, T., Thabane, L., Gluud, C., Devereaux, P. J., & Wetterslev, J. (2012) · PLoS ONE · doi:10.1371/journal.pone.0039471 · Cited by 423
Vickers, A. J. (2005) · BMC Medical Research Methodology · doi:10.1186/1471-2288-5-35 · Cited by 397 · cited 1×
“We relied upon the robustness of the t-test to departures from normality when analyzing the data of our experiments (Schmider et al. 2010; Vickers 2005; de Winter 2013).”
Method(2012) · Wiley eBooks · doi:10.1002/9781119202486 · Cited by 356
Cooper, H., & Patall, E. A. (2009) · Psychological Methods · doi:10.1037/a0015565 · Cited by 339
Test Driven Development: A Practical Guide
Astels, D. (2003) · CERN Document Server (European Organization for Nuclear Research) · Cited by 289
Applied Mixed Models in Medicine
Brown, H., & Prescott, R. (2014) · doi:10.1002/9781118778210 · Cited by 282
Empirical software engineering experts on the use of students and professionals in experiments
Falessi, D., Juristo, N., Wohlin, C., Turhan, B., Münch, J., Jedlitschka, A., & Oivo, M. (2018) · Empirical Software Engineering · doi:10.1007/s10664-017-9523-3 · Cited by 257
Self-citationFisher, D. J., Copas, A. J., Tierney, J. F., & Parmar, M. K. B. (2011) · Journal of Clinical Epidemiology · doi:10.1016/j.jclinepi.2010.11.016 · Cited by 182
Considering rigor and relevance when evaluating test driven development: A systematic review
Munir, H., Moayyed, M., & Petersen, K. (2014) · Information and Software Technology · doi:10.1016/j.infsof.2014.01.002 · Cited by 129
Understanding replication of experiments in software engineering: A classification
Gómez, O. S., Juristo, N., & Vegas, S. (2014) · Information and Software Technology · doi:10.1016/j.infsof.2014.04.004 · Cited by 125
Self-citationThe Effects of Test-Driven Development on External Quality and Productivity: A Meta-Analysis
Rafique, Y., & Misic, V. B. (2013) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2012.28 · Cited by 123
Measuring programming experience
Feigenspan, J., Kästner, C., Liebig, J., Apel, S., & Hanenberg, S. (2012) · 2012 20th IEEE International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc.2012.6240511 · Cited by 106 · cited 8×
“In view of this, and as no consensus seems to have been reached yet on how best to measure developer experience in SE [7,16,17], we decided to remove the time periods that we had allotted to each experience level.”
BackgroundMethodResultInfluentialThe role of replications in empirical software engineering—a word of warning
Kitchenham, B. A. (2008) · Empirical Software Engineering · doi:10.1007/s10664-008-9061-0 · Cited by 96 · cited 1×
“Some other authors argue that they should only be conceptual replications (e.g., Kitchenham 2008).”
BackgroundConstruction and Validation of an Instrument for Measuring Programming Skill
Bergersen, G. R., Sjøberg, D. I. K., & Dybå, T. (2014) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2014.2348997 · Cited by 91
Fucci, D., Erdogmus, H., Turhan, B., Oivo, M., & Juristo, N. (2017) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2016.2616877 · Cited by 90 · cited 10×
“Even though we do not focus on the length and rhythm of the development cycles with TDD (see [20] for an extended discussion on this point), our results appear to be consistent with the observations made by Karac and Turhan [29].”
BackgroundMethodResultInfluentialSelf-citationFactors Limiting Industrial Adoption of Test Driven Development: A Systematic Review
Causevic, A., Sundmark, D., & Punnekkat, S. (2011) · 2011 Fourth IEEE International Conference on Software Testing, Verification and Validation · doi:10.1109/icst.2011.19 · Cited by 89 · cited 12×
“Also it is one of the most studied attributes so far in the TDD literature [9,12,31,35,37,42,49], thus allowing for further comparisons of results.”
BackgroundMethodInfluentialTowards a theory of software development expertise
Baltes, S., & Diehl, S. (2018) · Proceedings of the 2018 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3236024.3236061 · Cited by 83 · cited 4×
“In view of the results in our family of experiments and of others in the SE community (Baltes and Diehl 2018; Jung et al. 2013), self-assessment questionnaires— contrary to what Feigenspan et al. reported (Feigenspan et al. 2012)—may, therefore, be unsuitable for describing experience within…”
BackgroundResultInfluentialWhat Do We Know about Test-Driven Development?
Shull, F., Melnik, G., Turhan, B., Layman, L., Diep, M., & Erdogmus, H. (2010) · IEEE Software · doi:10.1109/ms.2010.152 · Cited by 81
Self-citationBissi, W., Serra Seca Neto, A. G., & Emer, M. C. F. P. (2016) · Information and Software Technology · doi:10.1016/j.infsof.2016.02.004 · Cited by 76 · cited 10×
“Also it is one of the most studied attributes so far in the TDD literature [9,12,31,35,37,42,49], thus allowing for further comparisons of results.”
BackgroundMethodInfluentialUsing differences among replications of software engineering experiments to gain knowledge
Juristo, N., & Vegas, S. (2009) · Proceedings of the ... ACM-IEEE International Symposium on Empirical Software Engineering and Measurement/International Symposium on Empirical Software Engineering and Measurement · doi:10.1109/esem.2009.5314236 · Cited by 73
Self-citationDieste, O., Aranda, A. M., Uyaguari, F., Turhan, B., Tosun, A., Fucci, D., Oivo, M., & Juristo, N. (2017) · Empirical Software Engineering · doi:10.1007/s10664-016-9471-3 · Cited by 53
Self-citationTosun, A., Dieste, O., Fucci, D., Vegas, S., Turhan, B., Erdogmus, H., Santos, A., Oivo, M., Toro, K., Jarvinen, J., et al. (2017) · Empirical Software Engineering · doi:10.1007/s10664-016-9490-0 · Cited by 50
Self-citationKarac, I., Turhan, B., & Juristo, N. (2019) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2019.2920377 · Cited by 34 · cited 1×
“The difference in the level of detail of the specifications may have boosted the performance of the participants when developing BSK (see [28] for further research on this issue).”
BackgroundSelf-citationWhat Do We (Really) Know about Test-Driven Development?
Karac, I., & Turhan, B. (2018) · IEEE Software · doi:10.1109/ms.2018.2801554 · Cited by 33
Self-citationEffects of Test-Driven Development: A Comparative Analysis of Empirical Studies
Mäkinen, S., & Münch, J. (2014) · Lecture Notes in Business Information Processing · doi:10.1007/978-3-319-03602-1_10 · Cited by 18 · cited 10×
“Also it is one of the most studied attributes so far in the TDD literature [9,12,31,35,37,42,49], thus allowing for further comparisons of results.”
BackgroundMethodInfluentialExperimental Comparison of Two Safety Analysis Methods and Its Replication
Jung, J., Hoefig, K., Domis, D., Jedlitschka, A., & Hiller, M. (2013) · Proceedings of the ... ACM-IEEE International Symposium on Empirical Software Engineering and Measurement/International Symposium on Empirical Software Engineering and Measurement · doi:10.1109/esem.2013.59 · Cited by 14 · cited 4×
“In view of the results in our family of experiments and of others in the SE community (Baltes and Diehl 2018; Jung et al. 2013), self-assessment questionnaires— contrary to what Feigenspan et al. reported (Feigenspan et al. 2012)—may, therefore, be unsuitable for describing experience within…”
BackgroundResultInfluentialDifficulties in Running Experiments in the Software Industry: Experiences from the Trenches
Vegas, S., Dieste, Ó., & Juristo, N. (2015) · doi:10.1109/cesi.2015.8 · Cited by 8
Self-citationWhy don't we publish more TDD research papers?
Offutt, J. (2018) · Software Testing Verification and Reliability · doi:10.1002/stvr.1670 · Cited by 7 · cited 3×
“In addition, despite the many years of TDD research, little is yet known about how TDD performs in industrial experiments (Offutt 2018).”
BackgroundSantos, A., Järvinen, J., Partanen, J. O., Oivo, M., & Juristo, N. (2018) · Lecture notes in computer science · doi:10.1007/978-3-030-03673-7_17 · Cited by 6
Self-citationThe Price of Using StudentsPreprint
Sjøberg, D. I. K., & Bergersen, G. R. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1810.10791 · Cited by 1 · cited 2×
“We acknowledge that the distinction between students and professionals is controversial, and this could have an impact on our results (as some students may also be working in industry, and some professionals may also be studying) [16,50].”
Result(2002)
Research works printed but not linked: 5
- 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, Gomez O S, Juristo N (2018a) Analyzing families of experiments in SE: a systematic mapping study. IEEE Trans Softw Eng:1. https://doi.org/10.1109/TSE.2018.2864633 · DOI
- 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-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.