https://github.com/teleprint-me/ccheck.c
A minimalist approach to testing in pure C
https://github.com/teleprint-me/ccheck.c
Last synced: 11 months ago
JSON representation
A minimalist approach to testing in pure C
- Host: GitHub
- URL: https://github.com/teleprint-me/ccheck.c
- Owner: teleprint-me
- License: agpl-3.0
- Created: 2024-09-14T21:08:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-14T23:22:21.000Z (over 1 year ago)
- Last Synced: 2025-02-22T16:15:39.529Z (over 1 year ago)
- Language: C
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ccheck
**ccheck** is a minimalist testing framework written in pure C, designed to provide simple and efficient unit tests for C projects.
## Features
- Lightweight, minimal dependencies
- Simple interface for defining and running tests
- Designed for ease of integration into any C project
## Dependencies
- logger: A simple and lightweight logger written in pure C
- float_is_close: Compare floating-point numbers with a given tolerance in C
## Installation
1. Clone the repository:
```sh
git clone https://github.com/teleprint-me/ccheck.c ccheck
cd ccheck
git submodule update --init --recursive --remote
```
2. Build the project using CMake:
```sh
cmake -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build --config Debug
```
## Usage
1. Include `ccheck.h` in your project:
```c
#include "ccheck.h"
```
2. Define your test cases:
```c
TEST(test_case_name) {
// your test logic here
}
```
3. Run your tests:
```sh
./build/bin/ccheck
```
## License
This project is licensed under the AGPL License - see the [LICENSE](LICENSE) file for details.