mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-19 18:40:13 -06:00
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.
18 lines
317 B
C++
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;
|
|
}
|