Abstract

This paper presents an approach to the development of fixture setup code through an objects notation that is applied on implicit test fixtures. This approach is integrated with a management mechanism to call the fixture setup code from the JUnit test framework. The objective of this work is to enable the reuse of fixtures across multiple test classes avoiding the management and the creation of fixtures within the test itself. The evaluation of this proposal was performed during test-driven development of a Web-based system. Results present approximately 190 fixture setups with a reutilization average of about 13 times, observed in an analysis with 2200 h of development. Initial results show the growing reutilization of fixture setups during test development, with significant test code volume reduction.

Highlights

  • Modern practices of software development encourage extensive code testing during development stages (Bagge et al, 2010)

  • This study proposes to involve object notation language to set up fixtures, as well as a mechanism to call and manage implicit fixture setups

  • In this study we have presented a proposal for fixture setup through object notation for implicit test fixtures

Read more

Summary

Introduction

Modern practices of software development encourage extensive code testing during development stages (Bagge et al, 2010). Beck (2003) stated that automatized testing for Test-Driven Development (TDD) is a key factor as it influences the success and improvement of productivity during software design and development (Stober and Hansmann, 2010; Hunt et al, 2014). An important part of the test is the code initializing the SUT (Greiler et al, 2013a; 2013b), named fixture setup, which puts all elements on the required state to perform SUT (Beck, 2003; Meszaros, 2007; Louridas, 2005). The necessary elements to perform SUT are called test fixtures (Meszaros, 2007)

Objectives
Methods
Results
Discussion
Conclusion
Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.