µnit is a small testing framework for C
µnit is a small but full-featured unit testing framework for C. It has no dependencies (beyond libc), is permissively licensed (MIT), and is easy to include into any project.
For more information, see the µnit web site.
Features µnit currently includes include:
Features µnit does not currently include, but some day may include (a.k.a., if you file a PR…), include:
subprojectsfolder put a
[wrap-git] directory=munit url=https://github.com/nemequ/munit/ revision=head
Then you can use a subproject fallback when you include munit as a dependency to your project:
dependency('munit', fallback: ['munit', 'munit_dep'])
See the µnit web site.
Additionally, there is a heavily-commented example.c in the repository.