# boost-ext/ut

C++20 μ(micro)/Unit Testing framework

Repository: https://github.com/boost-ext/ut
Canonical: https://ross.abutalabs.com/products/ut
Homepage: https://boost-ext.github.io/ut/
Language: C++
License: BSL-1.0
License Family: other
Topics: testing, tdd, bdd, cpp20
Last push: 2026-02-14T04:02:17+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 67, release rhythm 28, longevity 100
- inputs: {"age_days": 2524, "days_push": 200, "days_rel": 518, "gap_med": 71.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1437, forks 131 (observed 2026-08-28T04:04:43.769989+00:00)

## What it is
UT (μt) is a C++20 micro unit testing framework distributed as a single header or C++20 module. It provides a macro-free, DSL-style API for writing tests with automatic registration, expressive assertions, and TDD/BDD support.

## Use cases
- write unit tests for C++20 code
- practice test-driven development in C++
- write BDD-style tests without macros
- run parameterized and parallel test suites
- integrate test output with CI systems
- replace assert-based testing with named, self-describing tests

## When to choose
- your project targets C++20 and you want a lightweight, macro-free testing framework
- you want a single-header dependency with fast compile times
- you need expressive assertions that show why a test failed
- you want TDD/BDD workflows with automatic test registration

## When to avoid
- your codebase must compile with pre-C++20 compilers
- you need an ecosystem with extensive matchers, fixtures, and mocking built in
- your team is already invested in GoogleTest or Catch2 conventions

## Facets
- artifact type: library
- maturity: active
- function: testing, e2e-testing, benchmarking
- domain: testing, developer-tools
- platform: cpp, cross-platform, windows
- tags: unit-testing, tdd, bdd, cpp20, single-header, macro-free, header-only, linux, macos

## Member repositories
- boost-ext/ut (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:43.769989+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:36:43.562902+00:00, confidence not recorded.
  - readme: https://github.com/boost-ext/ut (fetched 2026-08-28T04:04:43.769989+00:00, sha 35b21ed21187)
  - homepage: https://boost-ext.github.io/ut/ (fetched 2026-08-29T11:47:25.667209+00:00, sha ec896fbfea5c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
