Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unit testing frameworks for C++ Builder

Status
Not open for further replies.

PopePD

Programmer
Sep 24, 2007
4
AU
I'm looking for a suitable unit testing framework to use in C++ Builder, version 6 specifically, but also version 5.

I've come across TUT and CppTest. The former claims compatibility with Builder, but I haven't looked in to it. The latter I seem to recall is the venerable testing framework. Unfortunately I'm stuck on a Windows machine, and so don't have my configure/make workflow, which CppTest is designed for. CppTest has a Win directory, but it only contains project files for Visual Studio.

Any recommendations?
 
As written in your own reply, unittesting C++ is rather difficult.

Others have given it a nice try and came up with UnitTest++ at Searching with google I found this link. ;-)

It's not specifically meant for Borland C++, but you should probably get it to work Ok, beause it's also compilable on Linux and Mac OS X

HTH
TonHu
 
Thanks for the reply. I ended up going with CppTest at first. When I ran into problems (which were possibly not CppTest related) I switched to UnitTest++, which is the work of Noel Llopis who has evaluated many alternatives in the past (his previous favourite was CxxTest).

As suggested, the frameworks were reasonably painless to integrate into BCB, as long as you're comfortable compiling and working with libraries. Of course, the level of integration is fairly basic and any sophisticated workflow incorporations will have to be home grown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top