mutest 1.0

A simple micro unit testing framework for C programs
mutest is a micro unit testing framework utility for C (with some C++ support). It's mostly an idea (it even comes with 2 implementations of the idea!) with the goal of being easy to use (just write your test cases grouped in test suites and you're set) and so small and simple that you don't mind to copy the files to your project and just use it (i.e., no dependencies).

The idea is simple: a source file is a test suite, a function is a test case (special functions can be used for test suite initialization and termination), which can can have several checks. Checks comes in 2 flavors, one that only prints an error, and one that terminates the current test case too. A (normally) automated test program run all the test suites and print some stats. It fails (returns non-zero) if any test suite fails.

last updated on:
March 21st, 2009, 5:24 GMT
license type:
Public Domain 
developed by:
Leandro Lucarella
ROOT \ Programming \ Quality Assurance and Testing

In a hurry? Add it to your Download Basket!

user rating



Rate it!

Add your review!