Questions

Which C unit test tool (library) are you using

Tags:
+
0 Votes
Locked

Which C unit test tool (library) are you using

For the Java code that we write we use JUnit (and associated associated extensions like DbUnit, etc.). This is working really well for us.
We would like to use a standard tool (preferably open source) for the C++ code that we write. Which one are you using ? Would you recommend this tool ?
  • +
    0 Votes
    nidujay

    If you're primary focussing on WIN32 development, try CUnitWin32 (http://code.google.com/p/cunitwin32/). It's light and simple to use. It also isolates tests as separate processes so that global/static variables are initialised between tests.

    If your dev platform is Linux/Unix, I recommend "Check".

    +
    0 Votes
    bniranjanbhat

    C-unit is an opensource tool and is in similar lines with the J-unit. You can run it in automated mode,console mode or basic mode. It also generates reports in a nice format in html so that you can impress your manager!!

    +
    0 Votes
    dasdebjyoti

    I have started trying to work with CPPUnit for this purpose with my VC++ projects. I works well with C++. I hope it carries support for C code also, I'll need to re-engineer it to support C.

  • +
    0 Votes
    nidujay

    If you're primary focussing on WIN32 development, try CUnitWin32 (http://code.google.com/p/cunitwin32/). It's light and simple to use. It also isolates tests as separate processes so that global/static variables are initialised between tests.

    If your dev platform is Linux/Unix, I recommend "Check".

    +
    0 Votes
    bniranjanbhat

    C-unit is an opensource tool and is in similar lines with the J-unit. You can run it in automated mode,console mode or basic mode. It also generates reports in a nice format in html so that you can impress your manager!!

    +
    0 Votes
    dasdebjyoti

    I have started trying to work with CPPUnit for this purpose with my VC++ projects. I works well with C++. I hope it carries support for C code also, I'll need to re-engineer it to support C.