From c9ec3b3b4228073ed78a7ef580ae32fbf90f05fd Mon Sep 17 00:00:00 2001 From: Alejandro Celaya <alejandro@alejandrocelaya.com> Date: Tue, 23 Jul 2019 22:17:49 +0200 Subject: [PATCH] Fixed composer commands to be more aqurate based on their name --- composer.json | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index e6e20989..87432cea 100644 --- a/composer.json +++ b/composer.json @@ -115,15 +115,18 @@ "test:ci": [ "@test:unit:ci", "@test:db", - "@test:db:mysql", - "@test:db:postgres", "@test:api" ], "test:unit": "phpdbg -qrr vendor/bin/phpunit --order-by=random --coverage-php build/coverage-unit.cov --testdox", "test:unit:ci": "phpdbg -qrr vendor/bin/phpunit --order-by=random --coverage-php build/coverage-unit.cov --coverage-clover=build/clover.xml --coverage-xml=build/coverage-xml --log-junit=build/phpunit.junit.xml --testdox", - "test:db": "APP_ENV=test phpdbg -qrr vendor/bin/phpunit --order-by=random -c phpunit-db.xml --coverage-php build/coverage-db.cov --testdox", - "test:db:mysql": "DB_DRIVER=mysql composer test:db", - "test:db:postgres": "DB_DRIVER=postgres composer test:db", + "test:db": [ + "@test:db:sqlite", + "@test:db:mysql", + "@test:db:postgres" + ], + "test:db:sqlite": "APP_ENV=test phpdbg -qrr vendor/bin/phpunit --order-by=random -c phpunit-db.xml --coverage-php build/coverage-db.cov --testdox", + "test:db:mysql": "DB_DRIVER=mysql composer test:db:sqlite", + "test:db:postgres": "DB_DRIVER=postgres composer test:db:sqlite", "test:api": "bin/test/run-api-tests.sh", "test:pretty": [ @@ -150,7 +153,8 @@ "test:ci": "<fg=blue;options=bold>Runs all test suites, generating all needed reports and logs for CI envs</>", "test:unit": "<fg=blue;options=bold>Runs unit test suites</>", "test:unit:ci": "<fg=blue;options=bold>Runs unit test suites, generating all needed reports and logs for CI envs</>", - "test:db": "<fg=blue;options=bold>Runs database test suites on a SQLite database</>", + "test:db": "<fg=blue;options=bold>Runs database test suites on a SQLite, MySQL and PostgreSQL</>", + "test:db:sqlite": "<fg=blue;options=bold>Runs database test suites on a SQLite database</>", "test:db:mysql": "<fg=blue;options=bold>Runs database test suites on a MySQL database</>", "test:db:postgres": "<fg=blue;options=bold>Runs database test suites on a PostgreSQL database</>", "test:api": "<fg=blue;options=bold>Runs API test suites</>",