Test Framework |
Launch through single command |
Compile in one run |
QMake-able |
Easy to write
tests |
Test grouping |
No test registering required |
Useful fail messages |
QT-Test |
x |
x |
x |
+ |
x |
- |
x |
QUnit1 |
x |
x |
x |
+ |
x |
- |
x |
TUT2 |
x |
x |
x |
+ |
x |
x |
x |
Unit++3 |
x |
x |
x |
+ |
x |
- |
x
|
cutee4 |
? |
? |
- |
? |
? |
? |
? |
cppunit5 |
x |
x |
x |
- |
x |
- |
? |
UnitTest++6 |
x |
x |
x |
++ |
x |
x |
x |
Criteria:
Must
tests can be launched through a single command
possiblity to compile all test together
compilable with qmake
easy to write tests
no explicit test registering (except for naming the files containing tests)
Should
useful error mesages if assertion fails
easy setup of compilation
Criteria: Easy to write test:
Simple test should have no more than 10 LOC
Test for equality available instead of only asserts
Rich set of assertion functions
Readable syntax
Good documentation
Useful fail messages
Provide a mechnism for printing the values of a comparison if compare failed
1http://qunit.sourceforge.net/
2http://tut-framework.sourceforge.net/
3http://unitpp.sourceforge.net/
4http://codesink.org/cutee_unit_testing.html
5http://cppunit.sourceforge.net/cppunit-wiki
6http://unittest-cpp.sourceforge.net/