google/cmockery
A lightweight library to simplify and generalize the process of writing unit tests for C applications. observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3921
- days_rel: n/a
- days_push: 2288
- n_releases_24m: 0
Adoption not part of the score
1086 stars · 355 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Cmockery is a lightweight C library for writing unit tests, compiled into standalone test executables linked with the code under test. It emphasizes minimal dependencies and compatibility with old compilers, making it suitable for testing exotic or embedded code.
Use cases
- write unit tests for C code
- mock external functions in C unit tests
- test C modules with old compilers
- unit test embedded systems code
- run C tests as standalone executables
When to choose
- you need a minimal C unit testing framework with few dependencies
- you're stuck with an old compiler that newer frameworks don't support
- you're testing embedded or exotic C code with a custom C library
When to avoid
- you want a modern, actively developed C testing framework
- you're testing applications with the latest compilers where richer frameworks fit better
- you need features like test discovery or rich assertion reporting
Facets
library · maturity maintenance
testing mocking e2e-testing testing developer-tools embedded-systems windows cross-platform c unit-testing c-unit-tests mocking-framework lightweight legacy-compiler-friendly linux
1 source
- readme: https://github.com/google/cmockery · fetched 2026-08-28 · eb1f1288c5e9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| google/cmockery | main | 10 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem