Re:Greatest: C unit testing library in one file
by silentbicycle on Tuesday January 07, 2014 @09:08PM
(#7021240)
fff looks cool, too. Thanks! I'll check it out. :)
I've tended to use CMock (https://github.com/ThrowTheSwitch/CMock) for mocking, though it depends on some Ruby-based tooling. The last time I looked into replacing CMock I wound up hip-deep in the binutils. (It was fun when I stopped getting google results from StackOverflow and started getting them from Phrack, though. ;) )
Re:Greatest: C unit testing library in one file
by justinmk on Tuesday January 07, 2014 @11:46PM
(#7021745)
Did you try cmocka? http://cmocka.org/
It was the most featureful that I found when I was looking last year.
Re:Greatest: C unit testing library in one file
by silentbicycle on Wednesday January 08, 2014 @12:20AM
(#7021853)
I have not, but I'll check it out, thanks.
The test C test framework in the project is 4 lines long, but does require the standard library. https://github.com/meekrosoft/fff/blob/master/test/c_test_fr...