Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Testing O3DBI library

What are unit tests?

Unit tests are automated tests. The methodology for programming known as "Extreme Programming" (XP) defines unit tests as a key component of software engineering. A unit test sends a class (or another software module) a fixed message for every test case and verifies it returns the predicted answer. The class must run at 100%, i.e. every test case must be successful. If any test fails, the developer has to figure out why and fix the problem.

Unit test are exceedingly suitable to test software, which was drafted by the methodology called Design by Contract (DbC), a systematic approach to object-oriented software construction developed by Bertrand Meyer. Since DbC drafts are based on pre- and postconditions, these conditions can be checked by unit test to detect "violations of the contract".

CppUnit

O3DBI uses CppUnit to perform unit tests, which is a C++ port of the famous JUnit framework for unit testing in Java. CppUnit is not a part of the O3DBI project, the sources and any related documentation can be found at Sourceforge.Net: http://sourceforge.net/projects/cppunit and in the CppUnit Wiki.


SourceForge.net Logo Generated on Sun Jan 23 11:36:47 2005 for Oracle Object Oriented Database Interface (O3DBI) by  doxygen 1.3.9.1