Reputation: 9552
We have some projects that have CPPUnit tests that are build and run using an ant script to build them all (right now we're using Borland C++, but we're moving to VS2008).
The problem is that the interface to run and see the result of tests is unpleasant (command prompt). It would be awesome to have them run inside eclipse or VS2008.
It would be a lot better if a plugin that I could select the tests I want to run and get some visual feedback (green bar/red bar), pointing me to the tests that failed and the messages.
This exists with JUnit in Eclipse (for java), but is there something similar for C++ using Eclipse CDT or VS2008? A UI test runner would be usefull too, so I could launch the UI as a Post build action.
EDIT (possible answer):
I found this project: ECUT, however I didn't test it yet. Looks promising thou. I'll update this question as soon as I get more experience with the project.
Upvotes: 5
Views: 2169
Reputation: 21
I found your post in my quest for a simple CppUnit integration with Eclipse CDT, so for everyone like me who is seeking a simple CppUnit integration with Eclipse CDT:
I have created an Eclipse plugin to support vanilla CppUnit XML Test Reports with the official Eclipse CDT C/C++ Unit Testing Support plugin.
I have made it available on GitHub
So yes, now there is :)
Upvotes: 1
Reputation: 1619
cxxunit is another solution for test framework.
http://web-cat.cs.vt.edu/eclipse/cxxtest/
Upvotes: 0
Reputation: 1191
Their doesn't seem to be a test runner for within Visual Studio, just the MfcTestRunner and the QtTestRunner.
For Visual Studio, Resharper and TestDriven.Net are the usual suspects to first look for test runners, but both don't have support for CPPUnit.
Upvotes: 1
Reputation: 20881
I believe there's a GUI test runner that comes with cppunit, you could use that in your post build event.
Upvotes: 0