criterion
brew install criterion
v2.4.3
MIT
Cross-platform C and C++ unit testing framework for the 21st century
18
30-day installs · #7124
109
90-day · #5405
495
365-day · #5144
2.3k
★ GitHub stars · updated 2mo ago
Runtime dependencies
Build dependencies
GitHub topics
c
c-plus-plus
cross-platform
framework
kiss
unit-testing
Links
- https://github.com/Snaipe/Criterion
- GitHub: Snaipe/Criterion
- Brew formula source: Formula/c/criterion.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"cmake",
"meson",
"ninja",
"pkgconf"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"libgit2",
"nanomsg",
"nanopb"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Cross-platform C and C++ unit testing framework for the 21st century",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:42+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "criterion",
"github_default_branch": "bleeding",
"github_last_commit_at": "2026-06-12T12:15:50Z",
"github_readme_excerpt": "\u003ch1\u003e\u003cimg src=\"doc/criterion-title.png\" height=\"96\" alt=\"Criterion Logo\" /\u003e\u003c/h1\u003e\n\n[](https://cirrus-ci.com/github/Snaipe/Criterion)\n[](https://codecov.io/github/Snaipe/Criterion?branch=bleeding)\n[](https://github.com/Snaipe/Criterion/blob/master/LICENSE)\n[](https://github.com/Snaipe/Criterion/releases/latest)\n[][online-docs]\n[][online-docs-latest]\n\nA dead-simple, yet extensible, C and C++ unit testing framework.\n\n\n\n## Philosophy\n\nMost test frameworks for C require a lot of boilerplate code to\nset up tests and test suites -- you need to create a main,\nthen register new test suites, then register the tests within\nthese suites, and finally call the right functions.\n\nThis gives the user great control, at the unfortunate cost of simplicity.\n\nCriterion follows the KISS principle, while keeping the control\nthe user would have with other frameworks:\n\n* [x] C99 and C++11 compatible.\n* [x] Tests are automatically registered when declared.\n* [x] Implements a xUnit framework structure.\n* [x] A default entry point is provided, no need to declare a main\n unless you want to do special handling.\n* [x] Test are isolated in their own process, crashes and signals can be\n reported and tested.\n* [x] Unified interface between C and C++: include the criterion header and it *just* works.\n* [x] Supports parameterized tests and theories.\n* [x] Progress and statistics can be followed in real time with report hooks.\n* [x] TAP output format can be enabled with an option.\n* [x] Runs on Linux, FreeBSD, macOS, and W",
"github_repo": "Snaipe/Criterion",
"github_stars": 2268,
"github_topics": [
"c",
"c-plus-plus",
"cross-platform",
"framework",
"kiss",
"unit-testing"
],
"homepage": "https://github.com/Snaipe/Criterion",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 18,
"installs_365d": 495,
"installs_90d": 109,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "criterion",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 7124,
"rank_365d": 5144,
"rank_90d": 5405,
"raw_hash": "294c0e986e7b1ce1",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/c/criterion.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [
"libffi"
],
"version_head": "HEAD",
"version_stable": "2.4.3",
"versioned_formulae": [],
"why_use_this": null
}