dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #04919
Unit tests
I've added a framework for C++ unit tests using CppUnit, which is
similar to unittest in Python (both are ports of JUnit).
For an example, see src/test/mesh/cpp/
Unit tests will be split (please help out) in two directories at the
level of each library, so there should be
src/test/mesh/cpp
src/test/mesh/python
src/test/la/cpp
src/test/la/python
When possible, the same tests should be implemented both under cpp and
under python.
To compile and run the tests, install the package libcppunit-dev. Note
that this is not a new requirement for DOLFIN (only for developers).
The tests use the new macro
DOLFIN_TEST
which is just a collection of 8 lines we would otherwise have to
repeat in each test set (which seemed a little anal).
/Anders