rhoneyager/libicedb

Unit test functions

rhoneyager opened this issue · 4 comments

The shape reading code needs automated testing programs. A set of valid shape files should be provided, and the results of parsing these shapes should be checked to ensure that they are read correctly.

I can code a test suite.
I would do it in python, but that of course would increase the number of dependencies of the overall software suite.
I see the boost library as a testing suite as well, we might prefer this approach to be more consistent

I have an old boost example, in an old repository. In particular, see globals.cpp, globals.h, test.cpp, test_units.cpp, and test_shapefile.cpp.

It would work rather well, particularly if we continue to depend on Boost.

I have a sketch of the unit-testing implementation in the hdf-backend-improvements-1 branch. The shape testing can be a part of that.

Several unit tests were added.