C unit-testing

Open-source C projects categorized as unit-testing

Top 8 C unit-testing Projects

  • Criterion

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

    Project mention: Looking for unittest libraries in pure C | reddit.com/r/C_Programming | 2022-09-12

    My school uses Criterion (doc). source code

  • Muon

    A Micro (1k lines of code) Unit Test Framework for C/C++ (by jasmcaus)

    Project mention: Can some point me to a good resource on preprocessor macros? | reddit.com/r/C_Programming | 2022-05-22

    If you want type polymorphism akind to c++ template, check out https://github.com/jasmcaus/tau/blob/dev/tau/tau.h

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • qtools

    QTools collection of open source tools for embedded systems development on Windows, Linux and MacOS

  • c_koans

    C Koans

    Project mention: Github repository with "simple" code examples? | reddit.com/r/C_Programming | 2023-01-24
  • cauldron

    A collection of single-file C libraries. (generic containers, random number generation, argument parsing and other functionalities) (by camel-cdr)

    Project mention: SIMD-oriented Fast Mersenne Twister in C and non STD library discussion | reddit.com/r/C_Programming | 2023-02-02

    It really depends on your use case, but I've written a header only PRNG library that might be interesting to you. I've also held a presentation about it, if you are interested in the specifics: "How computers generate random numbers (A guide for programmers)"

  • libcester

    A robust header-only unit testing framework for C and C++ programming language. Support function mocking, memory leak detection, crash report.

  • clove-unit

    Single-Header Unit Testing framework for C (interoperable with C++) with test autodiscovery feature

    Project mention: Released CLove-Unit Test Adapter for Visual Studio! | reddit.com/r/unittesting | 2022-10-07

    Now you can run your C/C++ unit test written with CLove-Unit (single-header library) with a UI boost on Visual Studio.

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • testdrive

    An expressive single-header unit testing framework for C.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-02-02.

C unit-testing related posts


What are some of the best open-source unit-testing projects in C? This list will help you:

Project Stars
1 Criterion 1,698
2 Muon 118
3 qtools 100
4 c_koans 89
5 cauldron 84
6 libcester 50
7 clove-unit 26
8 testdrive 2
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives