On 24 February 2015 at 22:21, Sam Dodrill <shadow.h...@gmail.com> wrote: > I was wondering what you all use for a suckless style unit testing > framework in C.
If you apply the Unix principle correctly, main() is your unit test. All you need is creating test input, save the test output and whenever you call main() with the same test input, you just check for regressions in the test output compared to the expected test output. If you need unit tests to test portions of your code, you've probably not followed the Unix principle well. Requiring unit tests as in Java, C++, etc. is typically a very good indicator that your overall software architecture sucks and that it's incompliant with the Unix principle. -Anselm