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.
The most scalable way to write unit tests in C is using a unit testing framework, such as: CppUTest. Unity. Google Test.
A Unit Testing Framework for CCUnit is a lightweight system for writing, administering, and running unit tests in C. It provides C programmers a basic testing functionality with a flexible variety of user interfaces.
MSTest is concerned, the biggest difference between xUnit and the other two test frameworks (NUnit and MSTest) is that xUnit is much more extensible when compared to NUnit and MSTest. The [Fact] attribute is used instead of the [Test] attribute.
Popular C# unit testing frameworks NUnit. XUnit. Built-in Visual Studio testing tools.
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.
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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With