- Notifications
You must be signed in to change notification settings - Fork79
µnit is a small testing framework for C
License
NotificationsYou must be signed in to change notification settings
nemequ/munit
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
µnit is a small but full-featured unit testing framework for C. It hasno dependencies (beyond libc), is permissively licensed (MIT), and iseasy to include into any project.
For more information, seethe µnit web site.
Features µnit currently includes include:
- Handy assertion macros which make for nice error messages.
- Reproducible cross-platform random number generation, includingsupport for supplying a seed via CLI.
- Timing of both wall-clock and CPU time.
- Parameterized tests.
- Nested test suites.
- Flexible CLI.
- Forking(except on Windows).
- Hiding output of successful tests.
Features µnit does not currently include, but some day may include(a.k.a., if you file a PR…), include:
In yoursubprojects
folder put amunit.wrap
file containing:
[wrap-git]directory=muniturl=https://github.com/nemequ/munit/revision=head
Then you can use a subproject fallback when you include munit as adependency to your project:dependency('munit', fallback: ['munit', 'munit_dep'])
Additionally, there is a heavily-commentedexample.c inthe repository.
About
µnit is a small testing framework for C
Resources
License
Stars
Watchers
Forks
Packages0
No packages published