Looking for unittest libraries in pure C

This page summarizes the projects mentioned and recommended in the original post on /r/C_Programming

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Criterion

    A cross-platform C and C++ unit testing framework for the 21st century

  • My school uses Criterion (doc). source code

  • build

    Sample project showing a minimalist multiplatform build (by thradams)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • greatest

    A C testing library in 1 file. No dependencies, no dynamic allocation. ISC licensed.

  • Greatest is 1 header file. https://github.com/silentbicycle/greatest

  • mite

    Minimalist test framework for C language.

  • I once wrote my own: https://github.com/maxim2266/mite

  • I have written this one: https://gitlab.com/Alexgaard/software-for-fun/-/tree/main/Utilities/testlib

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts