This was inspired by my second-favorite plain-old-C unit testing framework, CuTest. It had a few shortcomings. Nothing bad enough to be really a "problem" per se, but I thought it lacked certain features I'd like to have: arguments on the user-supplied messages, exit status indicating success or failure, choice of what to do on failure, and dealing with not only equality but also such factors as order, string containment, etc. I also thought the function/macro names were overly long. Lastly, I didn't think it really needed all that organizing into suites and such, and the techniques of setting longjump targets and so on weren't really needed either, IMHO, as a simple macro could just invoke "return".
So, I decided to roll my own, with the aim of making it as simple and lightweight as possible, while fixing the shortcomings of CuTest. CUT is the result, cobbled together in the spare time of a few weeks.
Here is the .tgz file. You can also get to the individual files as follows:
I've only just recently written this page and made CUT publicly available, so it's rather rough at this time. If you have any suggestions (other than documentation, which is in progress), feel free to email me.
[ Home ]|[ Dave's Software ]|[ Email ]