A simple automated testing framework for projects written in C and C++.
There are two separate implementations of this testing framework: one for C and the other for C++. This allows tests to be implemented in an idiomatic manner for either language.
It will also serve as a prototype for the automated testing framework of Iridium programming language.
CPPTEST is released under the MIT license.
Warning
CPPTEST is still in Alpha-testing; please use with care. To report issues, use the "Issues" tab on this repository or send a message to mnpingleton@gmail.com.
Documentation and code examples are available in the ./docs directory.
| Dependency | Purpose |
|---|---|
| clang | Compiler |
| make | Automated build system |
git clone git@github.com:mpingleton/cpptest.gitmakemake testImportant
Root privileges are necessary for installation.
make installsudo make installIn a C project, use the -lctest flag in your compiler:
clang yourtestcode.c -lctest -o yourtestbinaryFor C++, use the -lcpptest flag:
clang++ yourtestcode.cpp -lcpptest -o yourtestbinaryThis project is currently not accepting contributions.