Files
RedisDesktopManager/tests/main.cpp
T
2014-05-01 15:41:25 +03:00

39 lines
902 B
C++

#include <QTest>
#include <QApplication>
//tests
#include <iostream>
#include "test_redisconnection.h"
#include "test_redisconnectionsmanager.h"
#include "test_command.h"
#include "test_response.h"
#include "test_valueformatters.h"
#include "test_valuetab.h"
#include "test_connection.h"
int main(int argc, char *argv[])
{
QApplication app( argc, argv );
int allTestsResult =
QTest::qExec(new TestConnection, argc, argv);// +
//QTest::qExec(new TestValueTab, argc, argv) +
//QTest::qExec(new TestCommand, argc, argv) +
// QTest::qExec(new TestResponse, argc, argv) +
// QTest::qExec(new TestRedisConnection, argc, argv) +
// QTest::qExec(new TestRedisConnectionsManager, argc, argv) +
// QTest::qExec(new TestValueFormatters, argc, argv);
if (allTestsResult != 0 ) {
#ifdef WIN32
std::cin.get();
#endif // WIN32
return 1;
}
return 0;
}