diff --git a/README.md b/README.md index 93e3c08..280ac08 100644 --- a/README.md +++ b/README.md @@ -65,4 +65,10 @@ Relations between LDraw models and Rebrickable parts are matched automatically b Unmatched relations can be specified by adding relation of IDs to `app/Resources/relations/part_model.yml` ## Testing +The test database must be created before the first test runs. You can create new one by running: + +1. Generate an empty database by running command (if it does not yet exist) `$ bin/console doctrine:database:create --env=test` +2. Create database tables/schema by running command`$ bin/console doctrine:schema:create --env=test` + + You can run complete system tests by `$ phpunit`. These should cover the main system functions and the functionality of calling the third-party programs that are required are needed to seamlessly retrieve the necessary application data. diff --git a/app/config/config_test.yml b/app/config/config_test.yml index f0b5325..f708fe6 100644 --- a/app/config/config_test.yml +++ b/app/config/config_test.yml @@ -17,14 +17,15 @@ swiftmailer: doctrine: dbal: - default_connection: default - connections: - default: - driver: pdo_sqlite - path: "%kernel.cache_dir%/test.db" - -liip_functional_test: - cache_sqlite_db: true + driver: pdo_mysql + host: "%database_host%" + port: "%database_port%" + dbname: printabrick_testdb + user: "%database_user%" + password: "%database_password%" + charset: UTF8 + options: + 1001: true oneup_flysystem: adapters: