Files
sqlitebrowser/src/tests/TestMain.cpp
Martin Kleusberg e7924f3739 Tests: Add unit tests for CSV import
Add a new test class for testing the import functionality. Currently
it's only covers some test cases for the CSV import.

Since the function to test here (DBBrowserDB::decodeCSV) is part of the
DBBrowserDB class, that class has a reference to the main window and the
main window basically depends on the entire rest of the project the
makefile grew quite a bit unfortunately.
2014-07-11 21:31:34 +02:00

18 lines
317 B
C++

#include <QtTest/QTest>
#include "tests/testsqlobjects.h"
#include "tests/TestImport.h"
int main(int argc, char** argv)
{
int status = 0;
{
TestTable tc;
status |= QTest::qExec(&tc, argc, argv);
}
{
TestImport tc;
status |= QTest::qExec(&tc, argc, argv);
}
return status;
}