On the article chosen this week, the authors examined, the conclusion of several articles, in order to understand the effects of the test driven development (TDD) methodology, on internal and external software quality and productivity. Automated unit tests are incrementally written, in order to test functionalities, which would be used for the development of a software; this happens before the source code, is even developed in a TDD environment.
Greater emphasis is put on variables used in research validation, such as the language used in development, the settings, the type of research method applied, and the profile of participants.
A fundamental understanding of TDD
in order to successfully understand the impacts of TDD in software development. As a fundamental part of eXtreme Programming (XP), TDD has gained popularity, due to its ability to help improve the code written and its ability to increase the quality and productivity of systems, which have been developed and implemented.
The researchers of the article chosen this week, found that more than 50% of the studies analyzed, had results which were validated through experiments. While validation was done through a case study, with more than 30% of the studies, analyzed by the authors. External software quality had a meaningful increase for 88% of the studies analyzed, and more than 70% of the studies analyzed, saw a significant increase in internal software quality. Lower productivity was indicated by 44% of the studies analyzed, when TDD was compared with TLD.
Why is Beneficial to Use TDD
The researchers found that TDD was more beneficial than TLD, for internal and external software quality; however, developer productivity was lower when TDD, was used. TDD helped developers to ensure that each unit of a software that is being developed, is indeed working properly independently of the rest of the system. As a set of techniques, TDD facilitates the development of a test suit and simple projects.
TDD is a software development process, which relies on the repetition of very short development cycle. An initial failing automated test cast is written, which would define a desired improvement or new function. A minimum amount of code, that would pass the test, would then be written, then the code would be refactored, in order to bring up the code to standards. A test is added first, then all the tests are ran to see if there are new fails, then some code is written, then the test is ran again, the code is refactored and finally the whole process is repeated.
The programmer must always, write a failing unit test, before any new code is written; then the programmer can proceed to create enough code to satisfy the requirements of the test. The programmer may refactor their code, once the requirements of the test are satisfied, while making improvements to the application, without having to change the behavior of the code.
The TDD methodology is able to produce applications, which have high quality services, for their clients and stake holder. Developers and testers have to accurately anticipate, how the application and its features will be used in the real world, in order to properly implement the TDD methodology.
Thank you for reading this article!!!