Library meant to simplify writing of tests. Very light-weight in the approach. Test syntax will be familiar to users of CUnit, however this is far more basic.
Dependents: CircularBufferTest
Tests are expected to take the form of macro-based statements, such as:
// An empty buffer should yield getSize() of zero TST_EQ( buffer.getSize(), 0, "Empty buffer: getSize()" );
You still have to do the hard work of coming up with the tests and writing code to implement them, but this library is intended to give you a "jump start" towards getting something with consistent output and keeping track of the number of passes/fails - just import the library, include the header and you're away.
See CircularBufferTest main.cpp for an example of how this library can be used
Files at revision 0:62a10b8392a4
Name | Size | Actions |
---|---|---|
[up] | ||
TestSupportLite.cpp | 979 | Revisions Annotate |
TestSupportLite.hpp | 2801 | Revisions Annotate |
TestSupportSimple.cpp | 733 | Revisions Annotate |
TestSupportSimple.hpp | 1675 | Revisions Annotate |