CPP unit testing frameworks

In a previous post, I was discussing briefly which the best C++ unit testing framework could be. The economic benefits of succesfully applying unit testing are substantial after all. After careful consideration I have found two candidates: Google Test and Parasoft C++Test.

Google Test is a comprehensive unit testing framework covering almost everything anyone can ever need. Compared to other tools it is also rather easy to use it for writing test cases and test suites. It has a very active development community, not least since Google is using it for all in house C++ development. It also has a very attractive  license, the New BSD License.

Parasoft  C++Test has a commercial license and is a bit expensive. But it does have a very attractive feature. Using instrumentation it can record the actual behaviour of your existing “legacy code” and automatically generate sufficient coverage of that code. This will not tell you if the code is flawed but it will alert you to any unplanned changes in that behaviour.

About Greger Wikstrand

Greger Wikstrand, Ph.D. M.Sc. is a TOGAF 9 certified enterprise architect with an interest in e-heatlh, m-health and all things agile as well as processes, methods and tools. Greger Wikstrand works as a consultant at Capgemini where he alternates between enterprise agile coaching, problem solving and designing large scale e-health services ...

Leave a Reply