项目
在 GitHub 查看
nemequ/munit
关于
µnit 是一个轻量级的 C 语言测试框架
开发工具可以做什么
- Handy assertion macros which make for nice error messages.
- Reproducible cross-platform random number generation, including support for supplying a seed via CLI.
- Timing of both wall-clock and CPU time.
- Parameterized tests.
实测星标增长
- 24小时
- +2
- 7天
- +2
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文µnit
µ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
Features µnit currently includes include:
- Handy assertion macros which make for nice error messages.
- Reproducible cross-platform random number generation, including support 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:
Include into your project with meson
In your subprojects folder put a munit.wrap file containing:
[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'])
Documentation
See the µnit web site.
Additionally, there is a heavily-commented example.c in the repository.
探索相关项目
加载中…