Skip to content

Commit

Permalink
Add support for running only one test via make
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Dec 6, 2020
1 parent 19b9ce9 commit 3b1d214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ composer-update: ## Update Composer dependencies
docker run --rm --interactive --tty --volume $(PWD):/app --user $(id -u):$(id -g) composer update --ignore-platform-reqs

test: ## Run PHPUnit for the unit tests
docker-compose run --rm --no-deps yin-php /bin/bash -c "cd /var/www && ./vendor/bin/phpunit"
docker-compose run --rm --no-deps yin-php /bin/bash -c "cd /var/www && ./vendor/bin/phpunit $(if $(TEST),$(TEST),)"

phpstan: ## Run PHPStan to perform static analysis
docker-compose run --rm --no-deps yin-php /bin/bash -c "cd /var/www && ./vendor/bin/phpstan analyse --level 8 src tests"
Expand Down

0 comments on commit 3b1d214

Please sign in to comment.