ccheck is a minimalist testing framework written in pure C, designed to provide simple and efficient unit tests for C projects.
- Lightweight, minimal dependencies
- Simple interface for defining and running tests
- Designed for ease of integration into any C project
- logger: A simple and lightweight logger written in pure C
- float_is_close: Compare floating-point numbers with a given tolerance in C
-
Clone the repository:
git clone https://github.com/teleprint-me/ccheck.c ccheck cd ccheck git submodule update --init --recursive --remote
-
Build the project using CMake:
cmake -B build -DCMAKE_BUILD_TYPE=Debug cmake --build build --config Debug
-
Include
ccheck.h
in your project:#include "ccheck.h"
-
Define your test cases:
TEST(test_case_name) { // your test logic here }
-
Run your tests:
./build/bin/ccheck
This project is licensed under the AGPL License - see the LICENSE file for details.