CUTe is a lightweight unit testing and mocking framework for C.
It is meant to ease the process of writing unit tests and make them suitable for test automation and regression testing activities.
Features
- flexible and modular test suite hierarchy,
- test fixtures,
- strict function mocking,
- extensive reporting,
- easy debugging of test failures,
- JUnit XML reporting,
- Test Anything Protocol reporting,
- C library dependency only.
Limitations
- GNU / Linux / Glibc userspace C unit testing only
- longjmp(3p) based test failure recovery only
- no fork(2) based test isolation
- no parameterizable test support
- custom check assertion not yet supported
Licensing
CUTe sources are distributed under the GNU Lesser General Public License. Documentation manuals are distributed under the GNU General Public License.
Latest documentation is available online.
Integration guide shows how to build and deploy CUTe.
User guide documents how to write and run tests.
In addition, once familiar with CUTe, you may refer to the API reference guide while in the process of writing tests.