Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

µnit is a small testing framework for C

License

NotificationsYou must be signed in to change notification settings

nemequ/munit

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.

Build statusWindows build status

Features

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:

Include into your project with meson

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'])

Documentation

Seethe µnit web site.

Additionally, there is a heavily-commentedexample.c inthe repository.

About

µnit is a small testing framework for C

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp