{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,18]],"date-time":"2026-08-18T04:38:05Z","timestamp":1787027885628,"version":"build-2736575974"},"reference-count":68,"publisher":"MDPI AG","issue":"3","license":[{"start":{"date-parts":[[2024,3,18]],"date-time":"2024-03-18T00:00:00Z","timestamp":1710720000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Computers"],"abstract":"<jats:p>Test-driven development (TDD) is an agile practice of writing test code before production code, following three stages: red, green, and refactor. In the red stage, the test code is written; in the green stage, the minimum code necessary to make the test pass is implemented, and in the refactor stage, improvements are made to the code. This practice is widespread across the industry, and various studies have been conducted to understand its benefits and impacts on the software development process. Despite its popularity, TDD studies often focus on the technical aspects of the practice, such as the external\/internal quality of the code, productivity, test smells, and code comprehension, rather than the context in which it is practiced. In this paper, we present a systematic literature review using Scopus, Web of Science, and Google Scholar that focuses on the TDD practice and the influences that lead to the introduction of test smells\/anti-patterns in the test code. The findings suggest that organizational structure influences the testing strategy. Additionally, there is a tendency to use test smells and TDD anti-patterns interchangeably, and test smells negatively impact code comprehension. Furthermore, TDD styles and the relationship between TDD practice and the generation of test smells are frequently overlooked in the literature.<\/jats:p>","DOI":"10.3390\/computers13030079","type":"journal-article","created":{"date-parts":[[2024,3,18]],"date-time":"2024-03-18T10:54:38Z","timestamp":1710759278000},"page":"79","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":6,"title":["Exploring the Connection between the TDD Practice and Test Smells\u2014A Systematic Literature Review"],"prefix":"10.3390","volume":"13","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-7646-554X","authenticated-orcid":false,"given":"Matheus","family":"Marabesi","sequence":"first","affiliation":[{"name":"GRIAL Research Group, Universidad de Salamanca, 37008 Salamanca, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9663-1103","authenticated-orcid":false,"given":"Alicia","family":"Garc\u00eda-Holgado","sequence":"additional","affiliation":[{"name":"GRIAL Research Group, Universidad de Salamanca, 37008 Salamanca, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9987-5584","authenticated-orcid":false,"given":"Francisco Jos\u00e9","family":"Garc\u00eda-Pe\u00f1alvo","sequence":"additional","affiliation":[{"name":"GRIAL Research Group, Universidad de Salamanca, 37008 Salamanca, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2024,3,18]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Minelli, R., Mocci, A., and Lanza, M. (2015, January 18\u201319). I Know What You Did Last Summer\u2014An Investigation of How Developers Spend Their Time. Proceedings of the 2015 IEEE 23rd International Conference on Program Comprehension, Florence, Italy.","DOI":"10.1109\/ICPC.2015.12"},{"key":"ref_2","unstructured":"Beck, K. (2022). Test Driven Development: By Example, Addison-Wesley Professional."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Ghafari, M., Gross, T., Fucci, D., and Felderer, M. (2020, January 5\u20137). Why research on test-driven development is inconclusive?. Proceedings of the 14th ACM\/IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM), Virtual.","DOI":"10.1145\/3382494.3410687"},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Aniche, M.F., and Gerosa, M.A. (2012, January 23\u201328). How the practice of TDD influences class design in object-oriented systems: Patterns of unit tests feedback. Proceedings of the 2012 26th Brazilian Symposium on Software Engineering, Natal, Brazil.","DOI":"10.1109\/SBES.2012.14"},{"key":"ref_5","unstructured":"Khorikov, V. (2020). Unit Testing Principles, Practices, and Patterns, Simon and Schuster."},{"key":"ref_6","unstructured":"Freeman, S., and Pryce, N. (2009). Growing Object-Oriented Software, Guided by Tests, Pearson Education."},{"key":"ref_7","unstructured":"Meszaros, G. (2007). xUnit Test Patterns: Refactoring Test Code, Pearson Education."},{"key":"ref_8","unstructured":"Mackinnon, T., Freeman, S., and Craig, P. (2000). Endo-testing: Unit testing with mock objects. Extrem. Program. Examined, 287\u2013301. Available online: https:\/\/www2.ccs.neu.edu\/research\/demeter\/related-work\/extreme-programming\/MockObjectsFinal.PDF."},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Freeman, S., Mackinnon, T., Pryce, N., and Walnes, J. (2004, January 24\u201328). Mock roles, not objects. Proceedings of the Companion to the 19th Annual ACM SIGPLAN Conference on Object-Oriented Programming Systems, Languages, and Applications, New York, NY, USA.","DOI":"10.1145\/1028664.1028765"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"1461","DOI":"10.1007\/s10664-018-9663-0","article-title":"Mock objects for testing java systems: Why and how developers use them, and how they evolve","volume":"24","author":"Spadini","year":"2019","journal-title":"Empir. Softw. Eng."},{"key":"ref_11","unstructured":"Van Deursen, A., Moonen, L., Van Den Bergh, A., and Kok, G. (2001, January 20\u201323). Refactoring test code. Proceedings of the 2nd International Conference on Extreme Programming and Flexible Processes in Software Engineering (XP2001), Sardinia, Italy."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Causevic, A., Sundmark, D., and Punnekkat, S. (2011, January 21\u201325). Factors limiting industrial adoption of test driven development: A systematic review. Proceedings of the 2011 Fourth IEEE International Conference on Software Testing, Verification and Validation, Berlin, Germany.","DOI":"10.1109\/ICST.2011.19"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"835","DOI":"10.1109\/TSE.2012.28","article-title":"The Effects of Test-Driven Development on External Quality and Productivity: A Meta-Analysis","volume":"39","author":"Rafique","year":"2013","journal-title":"IEEE Trans. Softw. Eng."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"375","DOI":"10.1016\/j.infsof.2014.01.002","article-title":"Considering rigor and relevance when evaluating test driven development: A systematic review","volume":"56","author":"Munir","year":"2014","journal-title":"Inf. Softw. Technol."},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Yahya, N., and Awang Abu Bakar, N.S. (2014, January 17\u201318). Test driven development contribution in universities in producing quality software: A systematic review. Proceedings of the The 5th International Conference on Information and Communication Technology for The Muslim World (ICT4M), Kuching, Malaysia.","DOI":"10.1109\/ICT4M.2014.7020666"},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"45","DOI":"10.1016\/j.infsof.2016.02.004","article-title":"The effects of test driven development on internal quality, external quality and productivity: A systematic review","volume":"74","author":"Bissi","year":"2016","journal-title":"Inf. Softw. Technol."},{"key":"ref_17","first-page":"75","article-title":"Test-Driven Development: Uma revis\u00e3o sistem\u00e1tica","volume":"13","author":"Benato","year":"2021","journal-title":"Rev. Bras. Comput. Apl."},{"key":"ref_18","unstructured":"Abushama, H.M., Alassam, H.A., and Elhaj, F.A. (March, January 26). The effect of Test-Driven Development and Behavior-Driven Development on Project Success Factors: A Systematic Literature Review Based Study. Proceedings of the 2020 International Conference on Computer, Control, Electrical, and Electronics Engineering (ICCCEEE), Khartoum, Sudan."},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"van Heugten Breurkes, J., Gilson, F., and Galster, M. (2022, January 25\u201326). Overlap between automated unit and acceptance testing\u2013a systematic literature review. Proceedings of the 26th International Conference on Evaluation and Assessment in Software Engineering, Gothenburg, Sweden.","DOI":"10.1145\/3530019.3530028"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Arnyndiasari, D., Ferdiana, R., and Santosa, P.I. (2022, January 26\u201328). Software Practices For Agile Developers: A Systematic Literature Review. Proceedings of the 2022 1st International Conference on Information System & Information Technology (ICISIT), Yogyakarta, Indonesia.","DOI":"10.1109\/ICISIT54091.2022.9872874"},{"key":"ref_21","unstructured":"Yang, X.S., Sherratt, S., Dey, N., and Joshi, A. (2022, January 21\u201324). Identifying Guidelines for Test-Driven Development in Software Engineering\u2014A Literature Review. Proceedings of the Seventh International Congress on Information and Communication Technology, London, UK."},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Marabesi, M., and Silveira, I.F. (November, January 30). Towards a gamified tool to improve unit test teaching. Proceedings of the 2019 XIV Latin American Conference on Learning Technologies (LACLO), San Jose Del Cabo, Mexico.","DOI":"10.1109\/LACLO49268.2019.00013"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"162","DOI":"10.1016\/j.jss.2016.06.043","article-title":"The impacts of agile and lean practices on project constraints: A tertiary study","volume":"119","author":"Nurdiani","year":"2016","journal-title":"J. Syst. Softw."},{"key":"ref_24","unstructured":"Garc\u00eda-Pe\u00f1alvo, F.J. (2022). Developing Robust State-of-the-Art Reports: Systematic Literature Reviews, Ediciones Universidad de Salamanca."},{"key":"ref_25","first-page":"19","article-title":"PRISMA 2020 explanation and elaboration: Updated guidance and exemplars for reporting systematic reviews","volume":"372","author":"Page","year":"2021","journal-title":"BMJ"},{"key":"ref_26","unstructured":"(2023, September 26). What is a PICOC?. Available online: https:\/\/cebma.org\/faq\/what-is-a-picoc."},{"key":"ref_27","unstructured":"Delgado L\u00f3pez-C\u00f3zar, E., Ordu\u00f1a-Malea, E., and Mart\u00edn-Mart\u00edn, A. (2019). Springer Handbook of Science and Technology Indicators, Springer."},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Haddaway, N.R., Collins, A.M., Coughlin, D., and Kirk, S. (2015). The Role of Google Scholar in Evidence Reviews and Its Applicability to Grey Literature Searching. PLoS ONE, 10.","DOI":"10.1371\/journal.pone.0138237"},{"key":"ref_29","first-page":"959","article-title":"bibliometrix: An R-tool for comprehensive science mapping analysis","volume":"11","author":"Aria","year":"2017","journal-title":"J. Inf."},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Ding, Y., Rousseau, R., and Wolfram, D. (2014). Measuring Scholarly Impact: Methods and Practice, Springer International Publishing.","DOI":"10.1007\/978-3-319-10377-8"},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"e1230","DOI":"10.1002\/cl2.1230","article-title":"PRISMA2020: An R package and Shiny app for producing PRISMA 2020-compliant flow diagrams, with interactivity for optimised digital transparency and Open Synthesis","volume":"18","author":"Haddaway","year":"2022","journal-title":"Campbell Syst. Rev."},{"key":"ref_32","unstructured":"Cholewiak, S.A., Ipeirotis, P., Silva, V., and Kannawadi, A. (2024, March 14). SCHOLARLY: Simple Access to Google Scholar Authors and Citation Using Python 2021. Available online: https:\/\/zenodo.org\/records\/7542349."},{"key":"ref_33","unstructured":"Kov\u00e1cs, A., and Szabados, K. (2024, March 14). Knowledge and Mindset in Software Development\u2014How Developers, Testers, Technical Writers and Managers Differ\u2014A Survey 2015. Available online: https:\/\/ceur-ws.org\/Vol-2046\/kovacs-szabados.pdf."},{"key":"ref_34","unstructured":"Valente, M.T. (2024, March 14). Software Engineering: A Modern Approach 2024. Available online: https:\/\/softengbook.org."},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Sedano, T., Ralph, P., and P\u00e9raire, C. (2016, January 8\u20139). Sustainable software development through overlapping pair rotation. Proceedings of the 10th ACM\/IEEE International Symposium on Empirical Software Engineering and Measurement, Ciudad Real, Spain.","DOI":"10.1145\/2961111.2962590"},{"key":"ref_36","unstructured":"Hartikainen, V. (2024, March 14). Defining Suitable Testing Levels, Methods and Practices for an Agile Web Application Project 2020. Available online: https:\/\/lutpub.lut.fi\/handle\/10024\/161159."},{"key":"ref_37","unstructured":"Kim, G., Behr, K., and Spafford, K. (2014). The Phoenix Project: A Novel about IT, DevOps, and Helping Your Business Win, IT Revolution."},{"key":"ref_38","unstructured":"Kurkela, M. (2024, March 14). DevOps Capability Assessment in a Software Development Team 2020. Available online: https:\/\/www.theseus.fi\/bitstream\/handle\/10024\/334710\/MikkoKurkela_DevOpsCapabilityAssessmentInASoftwareDevelopmentTeam.pdf."},{"key":"ref_39","unstructured":"Tarlinder, A. (2016). Developer Testing: Building Quality into Software, Addison-Wesley Professional."},{"key":"ref_40","first-page":"4854","article-title":"A research on DevOps maturity models","volume":"8","author":"Zarour","year":"2019","journal-title":"Int. J. Recent Technol. Eng."},{"key":"ref_41","unstructured":"Dimitrichka, Z. The role of unit testing in training. Proceedings of the Development through Research and Innovation, Ed. 2, Chi\u015fin\u0103u. Chi\u0219in\u0103u, Republica Moldova: Complexul Editorial 2021, Available online: https:\/\/ibn.idsi.md\/vizualizare_articol\/144725."},{"key":"ref_42","unstructured":"Torkar, R., Awan, N.M., Alvi, A.K., and Afzal, W. (2010, January 1\u20134). Predicting software test effort in iterative development using a dynamic Bayesian network. Proceedings of the 21st IEEE International Symposium on Software Reliability Engineering, San Jose, CA, USA."},{"key":"ref_43","doi-asserted-by":"crossref","first-page":"281","DOI":"10.3390\/fi3040281","article-title":"Test driven development: Advancing knowledge by conjecture and confirmation","volume":"3","author":"Parsons","year":"2011","journal-title":"Future Internet"},{"key":"ref_44","unstructured":"Cohn, M. (2009). Succeeding with Agile: Software Development Using Scrum, Addison-Wesley Professional."},{"key":"ref_45","doi-asserted-by":"crossref","unstructured":"Marabesi, M., Garc\u00eda-Pe\u00f1alvo, F.J., and Garc\u00eda-Holgado, A. (2023, January 20\u201323). Towards a TDD maturity model through an anti-patterns framework. Proceedings of the 2023 18th Iberian Conference on Information Systems and Technologies (CISTI), Aveiro, Portugal.","DOI":"10.23919\/CISTI58278.2023.10211890"},{"key":"ref_46","unstructured":"Bai, G.R., Smith, J., and Stolee, K.T. (July, January 26). How students unit test: Perceptions, practices, and pitfalls. Proceedings of the 26th ACM Conference on Innovation and Technology in Computer Science Education V. 1, Virtual Event, Germany."},{"key":"ref_47","unstructured":"Law, W.K.A. (2024, March 14). LEARNING EFFECTIVE TEST DRIVEN DEVELOPMENT. Available online: https:\/\/www.scitepress.org\/PublishedPapers\/2006\/13161\/13161.pdf."},{"key":"ref_48","unstructured":"Schuh, P., and Punke, S. (2003, January 10\u201313). Easing Test Object Creation in XP. Proceedings of the XP Universe, New Orleans, LA, USA."},{"key":"ref_49","doi-asserted-by":"crossref","unstructured":"Bowes, D., Hall, T., Petric, J., Shippey, T., and Turhan, B. (2017, January 23). How good are my tests?. Proceedings of the 2017 IEEE\/ACM 8th Workshop on Emerging Trends in Software Metrics (WETSoM), Buenos Aires, Argentina.","DOI":"10.1109\/WETSoM.2017.2"},{"key":"ref_50","unstructured":"Wall, E. (2024, March 14). Rationales and Approaches for Automated Testing of JavaScript and Standard ML. Available online: https:\/\/urn.kb.se\/resolve?urn=urn:nbn:se:uu:diva-219043."},{"key":"ref_51","unstructured":"Fowler, M. (2018). Refactoring, Addison-Wesley Professional."},{"key":"ref_52","unstructured":"Tornhill, A. (2018). Software Design X-Rays: Fix Technical Debt with Behavioral Code Analysis, Pragmatic Bookshelf."},{"key":"ref_53","doi-asserted-by":"crossref","unstructured":"Bavota, G., Qusef, A., Oliveto, R., De Lucia, A., and Binkley, D. (2012, January 23\u201328). An empirical analysis of the distribution of unit test smells and their impact on software maintenance. Proceedings of the 2012 28th IEEE international conference on software maintenance (ICSM), Trento, Italy.","DOI":"10.1109\/ICSM.2012.6405253"},{"key":"ref_54","doi-asserted-by":"crossref","unstructured":"Hauptmann, B., Junker, M., Eder, S., Heinemann, L., Vaas, R., and Braun, P. (2013, January 18\u201326). Hunting for smells in natural language tests. Proceedings of the 2013 35th International Conference on Software Engineering (ICSE), San Francisco, CA, USA.","DOI":"10.1109\/ICSE.2013.6606682"},{"key":"ref_55","doi-asserted-by":"crossref","unstructured":"De Bleser, J., Di Nucci, D., and De Roover, C. (2019, January 25\u201331). Assessing diffusion and perception of test smells in scala projects. Proceedings of the 2019 IEEE\/ACM 16th International Conference on Mining Software Repositories (MSR), Montreal, QC, Canada.","DOI":"10.1109\/MSR.2019.00072"},{"key":"ref_56","doi-asserted-by":"crossref","first-page":"1052","DOI":"10.1007\/s10664-014-9313-0","article-title":"Are test smells really harmful? an empirical study","volume":"20","author":"Bavota","year":"2015","journal-title":"Empir. Softw. Eng."},{"key":"ref_57","doi-asserted-by":"crossref","unstructured":"Palomba, F., Di Nucci, D., Panichella, A., Oliveto, R., and De Lucia, A. (2016, January 16\u201317). On the diffusion of test smells in automatically generated test code: An empirical study. Proceedings of the 9th International Workshop on Search-Based Software Testing, Austin, TX, USA.","DOI":"10.1145\/2897010.2897016"},{"key":"ref_58","doi-asserted-by":"crossref","first-page":"52","DOI":"10.1016\/j.jss.2017.12.013","article-title":"Smells in software test code: A survey of knowledge in industry and academia","volume":"138","author":"Garousi","year":"2018","journal-title":"J. Syst. Softw."},{"key":"ref_59","unstructured":"Martin, R.C. (2011). The Clean Coder: A Code of Conduct for Professional Programmers, Pearson Education."},{"key":"ref_60","unstructured":"Kummer, M., Nierstrasz, O., and Lungu, M. (2015). Categorising Test Smells. [Bachelor Thesis, University of Bern]."},{"key":"ref_61","unstructured":"Campos, D., Rocha, L., and Machado, I. (2021). Developers perception on the severity of test smells: An empirical study. arXiv."},{"key":"ref_62","doi-asserted-by":"crossref","first-page":"466","DOI":"10.1145\/359511.359522","article-title":"Characteristics of application software maintenance","volume":"21","author":"Lientz","year":"1978","journal-title":"Commun. ACM"},{"key":"ref_63","unstructured":"Kundra, G. (2024, March 14). Enhancing Developers\u2019 Awareness on Test Suites\u2019 Quality with Test Smell Summaries 2018. Available online: https:\/\/urn.fi\/URN:NBN:fi-fe2018110847723."},{"key":"ref_64","first-page":"1","article-title":"How are test smells treated in the wild? A tale of two empirical studies","volume":"9","author":"Junior","year":"2021","journal-title":"J. Softw. Eng. Res. Dev."},{"key":"ref_65","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1007\/s10664-021-09969-1","article-title":"The secret life of test smells-an empirical study on test smell evolution and maintenance","volume":"26","author":"Kim","year":"2021","journal-title":"Empir. Softw. Eng."},{"key":"ref_66","doi-asserted-by":"crossref","first-page":"96","DOI":"10.1007\/s10664-021-10094-2","article-title":"Developer-centric test amplification: The interplay between automatic generation human exploration","volume":"27","author":"Brandt","year":"2022","journal-title":"Empir. Softw. Eng."},{"key":"ref_67","doi-asserted-by":"crossref","unstructured":"Axelrod, A. (2018). Complete Guide to Test Automation: Techniques, Practices, and Patterns for Building and Maintaining Effective Software Projects, Apress.","DOI":"10.1007\/978-1-4842-3832-5"},{"key":"ref_68","doi-asserted-by":"crossref","first-page":"20","DOI":"10.1007\/s10664-022-10251-1","article-title":"Smells in system user interactive tests","volume":"28","author":"Rwemalika","year":"2023","journal-title":"Empir. Softw. Eng."}],"container-title":["Computers"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2073-431X\/13\/3\/79\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T14:15:28Z","timestamp":1760105728000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2073-431X\/13\/3\/79"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,3,18]]},"references-count":68,"journal-issue":{"issue":"3","published-online":{"date-parts":[[2024,3]]}},"alternative-id":["computers13030079"],"URL":"https:\/\/doi.org\/10.3390\/computers13030079","relation":{},"ISSN":["2073-431X"],"issn-type":[{"value":"2073-431X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,3,18]]}}}