In the context of the PERSEUS security framework, we have developed a tool that automates the generation of CppUnit tests.
Unit-Tests improve the quality, reliability and security of software. However, writing CppUnit tests by hand can be a tedious task, especially for larger projects. For complete test coverage, every single method has to be manually supplied with a CppUnit test. Therefore, we have developed in the context of the PERSEUS security framework a tool that automates much of this work and allows us to focus on the more challenging questions.
Read more at http://sourceforge.net/projects/code2test