Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 751 Bytes

DEVELOPING.md

File metadata and controls

35 lines (22 loc) · 751 Bytes

Developing

Please first read CONTRIBUTING.

Running tests

composer run-script test

You can run only some tests using filter:

composer run-script test -- --filter="fetches_"

Now all tests starting with fetches_ are run.

Run tests in MySQL

By default the tests run in SQLite memory. However, to run all tests full database is needed.

See TestCase how this is set up.

To easily run tests in docker setup MySQL:

docker run --name laravel-repository-mysql --detach -e MYSQL_ALLOW_EMPTY_PASSWORD=true -p 3306:3306 -d mysql:5.7
docker exec laravel-repository-mysql mysql -uroot -e "create database laravel_repository;"

# then

CI=true composer run-script test