TipsAndTricks

The return value from the test program is the number of test failures - i.e. if all the tests pass, the program will return 0; if three tests fail, the program will return 3; etc. This can be handy in makefiles, scripts, etc.

You can use global variables in your tests/suites:

#include "tests.h"

START_SUITE(mySuite)

MyVariable *var;

START_TEST("myTest")... lots of tests, one which sets var ...
END_TEST("myTest")