Skip to content

Commit c00fb02

Browse files
Add convenience var for testing only certain paths
1 parent 7d4542b commit c00fb02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
PHP ?= '8.1'
22
UP ?= 1
33
DOWN ?= 1
4+
TEST ?=
45

56
docs:
67
wget http://apigen.org/apigen.phar
@@ -19,5 +20,5 @@ down:
1920

2021
test:
2122
[ $(UP) -eq 1 ] && make up || true
22-
$(eval cmd='docker-compose run $(PHP) env XDEBUG_MODE=coverage vendor/bin/phpunit')
23+
$(eval cmd='docker-compose run $(PHP) env XDEBUG_MODE=coverage vendor/bin/phpunit $(TEST)')
2324
eval $(cmd); status=$$?; [ $(DOWN) -eq 1 ] && make down; exit $$status

0 commit comments

Comments
 (0)