I'm looking for a test framework for C++ in Eclipse CDT. Ideally it should have similar functionalities to those offered by JUnit.
I tried CUTE. It is good but I cannot seem to create unit tests within the project I'm currently working on. Neither can I create a separate unit test project to test my current project, because my current project is a C++ hello world application, but CUTE only allows testing project for a C++ library.
Any idea of other test frameworks I may count on, and is there any tutorial available? Thanks.
The problem you describe with CUTE is that you need to find a way to split up your application so you move the functionality you want to test to a library. Every test framework will put this requirement on your project structure.
Try GoogleTest or Boost.Test.
GoogleTest does not have a plugin for Eclipse.
see this issue: http://code.google.com/p/googletest/issues/detail?id=40
Cppunit is abandonware in the sense that it is not actively being maintained anymore.