diff --git a/Makefile b/Makefile
index 4a190b7..79f7f65 100644
--- a/Makefile
+++ b/Makefile
@@ -24,3 +24,6 @@ doctrine-migration:
PHP=$(PHP_BIN) ./bin/doctrine-migrate
build: clean js-routing asset
+
+run-tests:
+ $(PHP_BIN) bin/phpunit tests/
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index af3f147..c5117fb 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -13,6 +13,7 @@
+
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 3181151..1ff1e4c 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -13,3 +13,9 @@ if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
if ($_SERVER['APP_DEBUG']) {
umask(0000);
}
+
+passthru(sprintf(
+ 'APP_ENV=test PHP=%s "%s/../bin/doctrine-migrate"',
+ $_ENV['PHP_BIN'] ?? $_ENV['PHP'] ?? 'php',
+ __DIR__
+));