Research Article Open Access

Fixture Setup through Object Notation for Implicit Test Fixtures

Douglas Hiura Longo1, Beatriz Wilges1, Patrícia Vilain1 and Renato Cislaghi1
  • 1 Federal University of Santa Catarina, Brazil

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.

Journal of Computer Science
Volume 11 No. 6, 2015, 794-803

DOI: https://doi.org/10.3844/jcssp.2015.794.803

Submitted On: 18 February 2015 Published On: 16 September 2015

How to Cite: Longo, D. H., Wilges, B., Vilain, P. & Cislaghi, R. (2015). Fixture Setup through Object Notation for Implicit Test Fixtures. Journal of Computer Science, 11(6), 794-803. https://doi.org/10.3844/jcssp.2015.794.803

  • 2,742 Views
  • 2,036 Downloads
  • 5 Citations

Download

Keywords

  • Fixture Setup
  • Test Fixture
  • JUnit
  • Test-Driven Development
  • Object Notation