Since C does not provide a "canonical" unit testing framework, we have to implement our own. The basic template for testing frameworks is called xUnit, which we'll follow.
For C, I guess the analogous xUnit patterns would be:
- Test runner: the
.c
file with themain()
function running all (or some specified subset of) the test suites - Test suite: a collection of test cases
- Test case: the function which is a single unit test, i.e., has a single assert