mirror of
https://github.com/redis/RedisDesktopManager.git
synced 2026-10-20 22:25:51 +08:00
28 lines
574 B
C++
28 lines
574 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"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication app( argc, argv );
|
|
|
|
int allTestsResult =
|
|
QTest::qExec(new TestCommand, argc, argv) +
|
|
QTest::qExec(new TestResponse, argc, argv) +
|
|
QTest::qExec(new TestRedisConnection, argc, argv) +
|
|
QTest::qExec(new TestRedisConnectionsManager, argc, argv);
|
|
|
|
if (allTestsResult != 0 ) {
|
|
return 1;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|