Hello,

There seems to be a multitude of different unit testing frameworks for C and I'm having difficulty in choosing which one to use. (I have no experience with C development at all)

Is CUnit generally the well known and widely used framework as NUnit is for .net and JUnit for Java?

Any recommendations otherwise?

Thank-you in advance, Michelle

Recommended Answers

All 3 Replies

For anyone who would like to avoid the pain of picking and choosing between unit testing frameworks - if you want something light and simple (as in EVERYTHING in one header file): http://fctx.wildbearsoftware.com/FrontPage

* Fast C XUnit Test (FCTX) is a lightweight, cross platform, framework for quickly generating x-unit tests in C/C++.
* The entire framework is available as a single header file.
* Simply include a header and start typing out your tests.
* FCTX does not require two-step registration of your functions.
*... and it has good documentation with straightforward examples

And another extremely lightweight unit testing framework is CuTest

And another extremely lightweight unit testing framework is CuTest

its really good .
but i dont understand are these the rules that are followed in the industry.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.