|
|
[[_TOC_]]
|
|
|
|
|
|
# First Run
|
|
|
|
|
|
Before running, for the first time, all automated test for memoRekall member you must ensure some points :
|
|
|
1. The docker stack is already up and running
|
|
|
2. The database is already created
|
|
|
3. The database is already migrated to the last version.
|
|
|
4. The fixtures are loaded in the database.
|
|
|
|
|
|
The following bash script ensures those three points and run tests :
|
|
|
|
|
|
```bash
|
|
|
docker-compose up --build
|
|
|
docker-compose exec memorekall-member bash -c "php bin/console doctrine:migrations:migrate --env=test"
|
|
|
docker-compose exec memorekall-member bash -c "php bin/console doctrine:fixtures:load --env=test"
|
|
|
docker-compose exec memorekall-member bash -c "vendor/phpunit/phpunit/phpunit"
|
|
|
```
|
|
|
|
|
|
# Reset the database
|
|
|
|
|
|
```bash
|
|
|
docker-conmpose down
|
|
|
rm -rf mysql
|
|
|
mkdir mysql
|
|
|
docker-compose up --build
|
|
|
``` |
|
|
\ No newline at end of file |