Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatic generator of unit tests in C [closed]

Is there any automatic unit test case generator available for C language in Eclipse/ Netbeans or visual studio?

Generator in the sense, if I give a file it should generate unit test cases for all the functions. (like jUnit maker in Netbeans).

like image 581
Harikrishnan Avatar asked Nov 21 '11 14:11

Harikrishnan


1 Answers

If you want a tight integration in Eclipse, you should take a look at CUTE. It is a C++ Unit testing framework, but it is generally not so much of an effort to make C code comply to C++ compilation, and you get access to more inspection tools like this one.

You can take a look at a list of C Unit Testing framework and C++ Unit testing framework, but I don't know of any as much integrated in Eclipse as CUTE is. (But Eclipse is open source, and nothing stops you from creating a plug-in for another unit test framework :) )

like image 76
Matthieu Avatar answered Sep 28 '22 07:09

Matthieu