Skip to content
Snippets Groups Projects
Commit ef21b8a4 authored by Fabrice Gangler's avatar Fabrice Gangler :art:
Browse files

chore: do not delete dev database at test launch

parent 91583e44
No related branches found
No related tags found
No related merge requests found
Pipeline #92761 failed
......@@ -103,9 +103,7 @@ tests: ## Run all tests (PhpUnit)
cd "${WEBAPP_DIR}" && bin/console doctrine:database:drop --force --env=test || true
cd "${WEBAPP_DIR}" && bin/console doctrine:database:create --env=test
cd "${WEBAPP_DIR}" && bin/console doctrine:migrations:migrate -n --env=test
cd "${WEBAPP_DIR}" && bin/console doctrine:fixtures:load -n --env=dev
cd "${WEBAPP_DIR}" && bin/console doctrine:fixtures:load -n --env=test
cd "${WEBAPP_DIR}" && bin/console doctrine:fixtures:load -n
cd "${WEBAPP_DIR}" && XDEBUG_MODE=coverage bin/phpunit --testdox --strict-coverage --configuration phpunit.xml.dist
# cd "${WEBAPP_DIR}" && bin/phpunit --no-coverage --configuration phpunit.xml.dist
# cd "${WEBAPP_DIR}" && bin/phpunit --coverage-text --configuration phpunit.xml
......@@ -116,9 +114,7 @@ tests_gogogo: ## Run "gogogo" group tests (PhpUnit)
cd "${WEBAPP_DIR}" && bin/console doctrine:database:drop --force --env=test || true
cd "${WEBAPP_DIR}" && bin/console doctrine:database:create --env=test
cd "${WEBAPP_DIR}" && bin/console doctrine:migrations:migrate -n --env=test
cd "${WEBAPP_DIR}" && bin/console doctrine:fixtures:load -n --env=dev
cd "${WEBAPP_DIR}" && bin/console doctrine:fixtures:load -n --env=test
cd "${WEBAPP_DIR}" && bin/console doctrine:fixtures:load -n
cd "${WEBAPP_DIR}" && bin/phpunit --testdox --group gogogo --configuration phpunit.xml.dist
# cd "${WEBAPP_DIR}" && bin/phpunit --no-coverage --configuration phpunit.xml.dist
# cd "${WEBAPP_DIR}" && bin/phpunit --coverage-text --configuration phpunit.xml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment