Open rdmark opened 7 months ago
This wikipedia article lists a staggering number of unit test frameworks for C.
gtest/gmock leans heavily into the object oriented syntax of C++, and treats C headers as C++ which has some side effects, so it might not be the most elegant choice for this project.
The standout C-centric frameworks in my eyes are:
cmocka is nice for its built-in mocking. Unity is nice for its native Meson support.
We currently have a handful of integration tests for afpd in the test/ subdir, but the coverage is limited, and no code coverage is being tracked.
Ideally, we'd apply something like googletest / googlemock to achieve atomic unit tests with code coverage metrics.