Skip to content

Commit

Permalink
fix(phpunit): extract translation to avoid crawler error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxperei committed Dec 27, 2024
1 parent 8b8f60f commit 985124c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ endif
rm -rf ${TEST_DIRECTORY}
.PHONY: reset

phpunit: phpunit-configure phpunit-run ## Run PHPUnit
phpunit: phpunit-configure extract-translations phpunit-run ## Run PHPUnit
.PHONY: phpunit

###
Expand Down Expand Up @@ -72,6 +72,9 @@ install-sylius:
phpunit-configure:
cp phpunit.xml.dist ${TEST_DIRECTORY}/phpunit.xml

extract-translations:
${CONSOLE} translation:extract --force en

phpunit-run:
cd ${TEST_DIRECTORY} && ./vendor/bin/phpunit

Expand Down

0 comments on commit 985124c

Please sign in to comment.