Criterion
Muon
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Criterion
-
Show HN: RK Test, a Google Test style library written in C99
I really like Google Test, but am planning on doing some embedded development in C, where I sometimes find it awkward to test C code using a C++ library.
Therefore, I wrote a small unit test library closely mimicking Google Test. It consists of two source files, "rktest.c" and "rktest.h", and is about 1k lines of code and written in C99.
It uses a trick for self registering tests by placing pointers to the unit test functions into a known place in program memory, that I first learned about from https://github.com/christophercrouzet/rexo/ and https://github.com/Snaipe/Criterion/.
- Criterion: A cross-platform C/C++ unit testing framework for the 21st century
-
What is the best Unit testing framework for VS code for C?
I have been using criterion on a recent project and enjoying it.
-
Looking for unittest libraries in pure C
My school uses Criterion (doc). source code
-
I'm serious. try and change my mind
Otherwise I use criterion https://github.com/Snaipe/Criterion, since a few cases can't be checked properly in python (or are a hassle to do)
- Criterion 2.4 released (A cross-platform C and C++ unit testing framework))
-
How do I add custom C libraries to header and library search path?
Try this link for setup in doc.
-
How do I add a custom C library to my header and library search path?
https://github.com/Snaipe/Criterion < - repository for the unit-testing library.
- GitHub - Snaipe/Criterion: A cross-platform C and C++ unit testing framework for the 21st century
Muon
-
Can some point me to a good resource on preprocessor macros?
If you want type polymorphism akind to c++ template, check out https://github.com/jasmcaus/tau/blob/dev/tau/tau.h
-
Does a beginner friendly guide to CTest exit?
Checking type/abi sizes can and should be an optional part of the testing framework and can be done via target-adjustable macros: https://github.com/jasmcaus/tau/issues/22
- Tau – Googletest-style Test Assertions for C
- I wrote a unit testing framework in pure C (8x faster than GTest and Catch2)
- Tau – Unit-testing framework written in Pure C (8x faster than GTest and Catch2)
- Tau – A pure C unit-testing framework (~1k loc, tests C++ code as well)
-
I wrote a Unit Testing Framework in pure C that can test C & C++ code
Sure! It's linked above as well: https://github.com/jasmcaus/Muon
- I wrote a Unit Testing Framework in pure C that can test embedded C & C++ code
- I wrote a Micro Unit Testing Library (1k lines of code) for C++
- I wrote a unit testing framework in pure C that can tests both C and C++ code
What are some alternatives?
c_koans - C Koans
cmake-cookbook - CMake Cookbook recipes.
gauge - Lean Haskell Benchmarking
Unity Test API - Simple Unit Testing for C
software-for-fun
doctest - The fastest feature-rich C++11/14/17/20/23 single-header testing framework
asciinema-edit - asciinema casts post-production tools
AppInitHook - Global user-mode hooking framework, based on AppInit_DLLs. The goal is to allow you to rapidly develop hooks to inject in an arbitrary process.
mite - Minimalist test framework for C language.
libsamplerate - An audio Sample Rate Conversion library
gid - Help project managers and project owners with easy-to-understand views of github issue dependencies.
bdd-for-c - A simple BDD library for the C language