tests: split sqlb-unittests

Instead of a single executable running different unit tests at the
same time, split the sqlobjects and import parts out of it.
While this currently duplicates the cmake boilerplate for each,
it allows to finetune each properly (like build only the sources for
it, in the future), and to call each separately.

Add the QTEST_MAIN in each test, and remove the manual QCoreApplication
handling in TestImport (handled by QTEST_MAIN).
This commit is contained in:
Pino Toscano
2015-05-02 13:51:23 +02:00
parent 57f2622e34
commit 27df9cfa4d
5 changed files with 80 additions and 52 deletions

View File

@@ -3,6 +3,8 @@
#include <QtTest/QtTest>
QTEST_APPLESS_MAIN(TestTable)
using namespace sqlb;
void TestTable::sqlOutput()