views:

150

answers:

3

On Windows XP, using TDM's GCC/MinGW32 for basic development i.e. gcc 4.4.x with gdb. Which unit testing framework to use for test driven development?

Apparently Check's unit tests don't yet work on Windows.

The questions at Unit Testing Frameworks for C and Unit Testing C Code are similar but not specifically about using gcc 4.4.x on Windows.

+1  A: 

Cut is the only C unit testing framework I know that can run on Windows. Check does work on Windows via Cygwin (that's what I am currently using).

joemoe
+4  A: 

Awesome slides from a talk on TDD with C, using nothing but C99 standard stuff.

Personally I like the stuff in glib, which you may be able to use in MinGW.

mcl
+1 for the slides, truly awesome.
philippe
+2  A: 

minunit only is four macros long, so it'll compile on any platform. It's not fully-featured, but does the job, and can be easily extended to fit your needs.

philippe