loading...
 This Article 
   
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
10th International Database Engineering and Applications Symposium (IDEAS'06)
A Unit-Test Framework for Database Applications
Delhi, India
December 11-December 14
ISBN: 0-7695-2577-6
Steen Gundersborg, Spar Nord Bank A/S
Kristian Torp, Aalborg University
The outcome of a test of an application that stores data in a database naturally depends on the state of the database. It is therefore important that test developers are able to set up and tear down database states in a simple and efficient manner. In existing unit-test frameworks, setting up and tearing down such test fixtures is labor intensive and often requires copy-and-paste of code. This paper presents an extension to existing unit-test frameworks that allows unit tests to reuse data inserted by other unit tests in a very structured fashion. With this approach, the test fixture for each unit test can be minimized. In addition, the reuse between unit tests can speed up the execution of test suites. A performance test on a medium-size project shows a 40% speed up and an estimated 25% reduction in the number of lines of test code.
Citation:
Claus A. Christensen, Steen Gundersborg, Kristian de Linde, Kristian Torp, "A Unit-Test Framework for Database Applications," ideas, pp.11-20, 10th International Database Engineering and Applications Symposium (IDEAS'06), 2006
Usage of this product signifies your acceptance of the Terms of Use.