Search for recommendations on an automatic test structure for C

I am writing some code (some of which use the W3C libwww) in C. It has been a while since I touched ANSI C. On the same day, we turned our own test environment over. Does anyone here have any test framework that they recommend for programming in C?

To walk around I was inclined to go with Check . It has a page on other unit testing systems in C , some of which I quickly looked through. GNU AutoUnit seemed like a good choice, since I use the GNU build tools (autoconf, automake), but it doesn’t look so alive ...

Another option is to use the C ++ framework and just write my tests in C ++

In any case, any expert opinions will be appreciated. Thank.

+3
source share
1 answer

You might want to take a look. cppUTest

This is the unit test framework for C and C ++. Below is a blog with some instructions on using cpputest for embedded TDD and C.

CppUtest is quite lightweight and allows you to customize ...

+2
source

Source: https://habr.com/ru/post/1748100/


All Articles