You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
557 B
28 lines
557 B
/** |
|
* @author Rob Caldecott |
|
* @note This was obtained from http://qtcreator.blogspot.com/2010/04/sample-multiple-unit-test-project.html |
|
* |
|
*/ |
|
|
|
#include "AutoTest.h" |
|
#include <QDebug> |
|
|
|
#if 1 |
|
// This is all you need to run all the tests |
|
TEST_MAIN |
|
#else |
|
// Or supply your own main function |
|
int main(int argc, char *argv[]) |
|
{ |
|
int failures = AutoTest::run(argc, argv); |
|
if (failures == 0) |
|
{ |
|
qDebug() << "ALL TESTS PASSED"; |
|
} |
|
else |
|
{ |
|
qDebug() << failures << " TESTS FAILED!"; |
|
} |
|
return failures; |
|
} |
|
#endif
|
|
|