Commit Graph

6 Commits

Author SHA1 Message Date
Martin Kleusberg
42a2faf411 Tests: Simplify the cmake file
Now that the dependeny to the main window is removed from the
DBBrowserDB class we can get rid of all the dialogs and widget related
stuff in the cmake file used for the unit test project. Because our
Application class depends on the main window, too, the code for the CSV
tests is changed to use Qt's standard QApplication class.
2014-07-12 16:21:08 +02:00
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
Peinthor Rene
968c12ae7c cmake/unit: fix incorrect antlr include path 2014-07-06 09:45:11 +02:00
Peinthor Rene
de1fb9ff2f qt5: full qt5 compability
ifdef rest of the code which can't be ported 100%
add CMake option USE_QT5 to use qt5 ;)
Thanks to stretchtiberius for initial patch
2014-02-14 00:28:42 +01:00
Peinthor Rene
67787f5e8b cmake: set default build type to Release
if non is given
2014-02-12 19:16:19 +01:00
Peinthor Rene
d24ab33f2c cmake: remove unittest option
Create a CMake project just for unittest in the tests folder
2014-01-23 22:08:54 +01:00