Quality of Test Design in Test Driven Development
2013 (English)Doctoral thesis, comprehensive summary (Other academic)
One of the most emphasised software testing activities in an Agile environment is the usage of the Test Driven Development (TDD) approach. TDD is a development activity where test cases are created by developers before writing the code, and all for the purpose of guiding the actual development process. In other words, test cases created when following TDD could be considered as a by-product of software development. However, TDD is not fully adopted by the industry, as indicated by respondents from our industrial survey who pointed out that TDD is the most preferred but least practised activity.
Our further research identified seven potentially limiting factors for industrial adoption of TDD, out of which one of the prominent factor was lack of developers’ testing skills. We subsequently defined and categorised appropriate quality attributes which describe the quality of test case design when following TDD. Through a number of empirical studies, we have clearly established the effect of “positive test bias”, where the participants focused mainly on the functionality while generating test cases. In other words, there existed less number of “negative test cases” exercising the system beyond the specified functionality, which is an important requirement for high reliability systems. On an average, in our studies, around 70% of test cases created by the participants were positive while only 30% were negative. However, when measuring defect detecting ability of those sets of test cases, an opposite ratio was observed. Defect detecting ability of negative test cases were above 70% while positive test cases contributed only by 30%.
We propose a TDDHQ concept as an approach for achieving higher quality testing in TDD by using combinations of quality improvement aspects and test design techniques to facilitate consideration of unspecified requirements during the development to a higher extent and thus minimise the impact of potentially inherent positive test bias in TDD. This way developers do not necessarily focus only on verifying functionality, but they can as well increase security, robustness, performance and many other quality improvement aspects for the given software product. An additional empirical study, evaluating this method, showed a noticeable improvement in the quality of test cases created by developers utilising TDDHQ concept. Our research findings are expected to pave way for further enhancements to the way of performing TDD, eventually resulting in better adoption of it by the industry.
Place, publisher, year, edition, pages
Västerås: Mälardalen University , 2013. , 224 p.
Mälardalen University Press Dissertations, ISSN 1651-4238 ; 140
agile, software testing, test driven development, quality of tests, developer testing, test design quality
Research subject Computer Science
IdentifiersURN: urn:nbn:se:mdh:diva-18773ISBN: 978-91-7485-108-3OAI: oai:DiVA.org:mdh-18773DiVA: diva2:618378
2013-06-11, Gamma, Högskoleplan 1, Västerås, 09:15 (English)
Muccini, Henry, Assistant Professor
Punnekkat, Sasikumar, Professor
List of papers