mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-05-03 06:59:23 -05:00
68446e3530
- all tests are ran against SQLite test database too 🎉🔥 - removed default models connection for tests, because I'm testing models for all database connections and the connection is controlled by global test data, so every test is ran against all the supported databases - added test code controlled by TINYORM_TESTS_CODE preprocessor macro, which enables connection override in the BaseModel - build tests only when the "CONFIG += build_tests" was added to the qmake command added php script to create databases - script creates MySQL and SQLite databases - script populate this databases with test data - connection credentials are provided through the DB_ env. variables other changes - added api to enable statement counters for the given connections - added BaseModel::truncate test
10 lines
184 B
Prolog
10 lines
184 B
Prolog
TEMPLATE = subdirs
|
|
|
|
SUBDIRS += src
|
|
|
|
# Can be enabled by CONFIG += build_tests when the qmake.exe for the project is called
|
|
build_tests {
|
|
SUBDIRS += tests
|
|
tests.depends = src
|
|
}
|