ThrowTheSwitch/Unity
Simple unit testing for C observed · 2026-08-28
Health v2 · maintenance only
86/100
- Activity 99
- Release rhythm 61
- Longevity 100
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: 560
- age_days: 5333
- days_rel: 48
- days_push: 8
- n_releases_24m: 2
Adoption not part of the score
5356 stars · 1130 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Unity is a lightweight unit testing framework for C, distributed as a single C file and a pair of headers with a rich set of assertion macros. It is designed to work with any compiler and build system, with particular focus on embedded toolchains and microcontroller targets.
Use cases
- unit test C code
- test firmware for microcontrollers
- add a testing framework to an existing C build
- write xUnit-style tests in C
- run C tests with CMake or Make
- test embedded C toolchains with any compiler
When to choose
- you need a minimal, dependency-free unit testing framework for C
- you are testing embedded or cross-compiled code with constrained toolchains
- you want tests that integrate into any existing build system
- you want a mature, widely adopted C test framework
When to avoid
- you are testing C++ and want a native C++ framework like GoogleTest or Catch2
- you want automatic mocking - pair it with CMock or use Ceedling instead
- you need built-in test discovery or a test runner UI out of the box
Facets
library · maturity stable
testing developer-tools testing embedded-systems developer-tools cross-platform c cpp embedded cross-platform cli unit-testing c-testing embedded-testing xunit assertions single-file-library microcontrollers
2 sources
- readme: https://github.com/ThrowTheSwitch/Unity · fetched 2026-08-28 · 8724aa0a1d18
- homepage: https://ThrowTheSwitch.org · fetched 2026-08-29 · 18a88e514e0d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ThrowTheSwitch/Unity | main | 86 |
For agents
markdown · JSON · MCP: product_card(name="ThrowTheSwitch/Unity")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem