Seeking recommendations on automated test framework for C [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question 开发者_StackOverflow社区I'm writing some code (some of which uses W3C's libwww) in C. It's been a while since I've touched ANSI C. Back in the day we rolled our own test framework. Does anybody here have any test frameworks that they recommend for C programming?
Googling around I was inclined to go with Check. It has a page on other unit testing frameworks in C, a few of which I've taken a quick look at. GNU AutoUnit seemed like it might be a good choice since I'm using the GNU build tools (autoconf, automake) but it doesn't look that alive...
Another option would be to use a C++ framework and just write my tests in C++
Anyway, any experienced opinions would be appreciated. Thanks.
You might want to take a look at . cppUTest
It is unit test harness framework for C and C++. Here is a blog with some instructions on using cpputest for embedded TDD and C.
CppUtest is fairly light-weight and allows for customization...
精彩评论