Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

PopePD (Programmer) (OP)
24 Sep 07 21:32
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?
PopePD (Programmer) (OP)
24 Sep 07 23:00
Replying to myself here, I just found this interesting discussion on a Borland newsgroup:

http://tinyurl.com/2xzupj
TonHu (Programmer)
25 Sep 07 16:59
As written in your own reply, unittesting C++ is rather difficult.

Others have given it a nice try and came up with UnitTest++ at http://unittest-cpp.sourceforge.net/
Searching with google I found this link. winky smile

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
PopePD (Programmer) (OP)
2 Oct 07 2:30
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.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close