Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 582 Bytes

testing.md

File metadata and controls

35 lines (22 loc) · 582 Bytes

Testing

By default, tests are run in an SQLite database, located in var/eole-test.sqlite.

Docker installation

Run unit tests and codestyle checker:

make test

Raw installation

# Create your test environment config file:
cp config/environment_test.yml.dist config/environment_test.yml

# Create test database schema
php bin/console --env=test orm:schema-tool:create

Run tests

vendor/bin/phpunit -c .

PHP CodeSniffer is also included in dev dependencies, run phpcs:

vendor/bin/phpcs --standard=phpcs.xml src/