[JT] Jochen Topf's Blog
Thu 2011-06-23 18:09

Unit Testing in C++

Osmium is getting bigger and bigger and doing more and more. But testing the code is still done manually and ad-hoc. Not good. I have used some testing frameworks in other languages, but never in C++. As usual, Boost comes to the rescue. I recently added some test code using the Boost Unit Test Framework which (at least for now) does all I need.

Unfortunately the documentation is quite useless for a beginner, but I found this nice description which got me started.

All thats left now is writing all those tests… Any help is appreciated.

Tags: c++ · dev · openstreetmap · osmium · testing