DocumentCode :
2973026
Title :
A Unit-Test Framework for Database Applications
Author :
Christensen, Claus A. ; Gundersborg, Steen ; de Linde, K. ; Torp, Kristian
fYear :
2006
fDate :
Dec. 2006
Firstpage :
11
Lastpage :
20
Abstract :
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
Keywords :
database management systems; program testing; software reusability; database application; software reusability; software testing; unit-test framework; Application software; Fixtures; Object oriented databases; Object oriented programming; Prototypes; Relational databases; Software prototyping; Software testing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Database Engineering and Applications Symposium, 2006. IDEAS '06. 10th International
Conference_Location :
Delhi
ISSN :
1098-8068
Print_ISBN :
0-7695-2577-6
Type :
conf
DOI :
10.1109/IDEAS.2006.7
Filename :
4041598
Link To Document :
بازگشت