Subject: Re: Proposal for unittests

Re: Proposal for unittests

From: Marko Kreen <markokr_at_gmail.com>
Date: Mon, 29 Apr 2013 09:42:13 +0300

On Mon, Apr 29, 2013 at 08:13:38AM +0200, Patrick Valsecchi wrote:
> No need of external dependency. That's the beauty of the thing. You
> just drop 3 files in the test directory (AllTests.c, CuTest.c,
> CuTest.h) and you're all set.
>
> I don't think a test framework needs to be fancy. It must just avoid
> being in the way. That is the simplest I've found.

Nick Mathewson's "tinytest" has similar property:

  https://github.com/libevent/libevent/tree/master/test

It's just following files you can drop into your tree:

  tinytest.[ch] + tinytest_macros.h

By quick look, it even seems to have cuter api - no camelcase,
shorter symbols and fewer of them. But that's a matter of taste.

-- 
marko
Received on 2013-04-29