File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828
2929# ---
3030
31+ RANDOM_SEED := $(shell head -200 /dev/urandom | cksum | cut -f1 -d " ")
32+
33+ # ---
34+
3135COMPOSER_FLAGS_ANSI_PROFILE = --ansi --profile
3236COMPOSER_FLAGS_OPTIMIZE_WITH_ALL_DEPS = --optimize-autoloader --with-all-dependencies
3337
@@ -127,15 +131,12 @@ phpstan: ## QA: <composer phpstan>
127131
128132.PHONY : tests
129133tests : # # QA: <composer tests>
130- @composer tests
134+ @$(eval testsuite ?= 'Unit')
135+ @$(eval filter ?= '.')
136+ @php -d xdebug.mode=off vendor/bin/phpunit --configuration=phpunit.xml --testdox --colors --order-by=random --random-order-seed=$(RANDOM_SEED ) --testsuite=$(testsuite ) --filter=$(filter )
131137 $(call taskDone)
132138
133139.PHONY : coverage
134140coverage : # # QA: <composer coverage>
135141 @composer coverage
136142 $(call taskDone)
137-
138- .PHONY : clean-cache
139- clean-cache : # # QA: <composer clean-cache>
140- @composer clean-cache
141- $(call taskDone)
Original file line number Diff line number Diff line change 4444 "phpcs" : " phpcs -p --colors --standard=phpcs.xml app/ tests/" ,
4545 "phpcbf" : " phpcbf -p --colors --standard=phpcs.xml app/ tests/" ,
4646 "phpstan" : " phpstan analyse --ansi --configuration=phpstan.neon --memory-limit=1G --no-progress" ,
47- "phpunit" : " phpunit --configuration=phpunit.xml --testdox --colors --order-by=random --random-order-seed=$(head -200 /dev/urandom | cksum | cut -f1 -d \" \" )" ,
47+ "phpunit" : " php -d xdebug.mode=off phpunit --configuration=phpunit.xml --testdox --colors --order-by=random --random-order-seed=$(head -200 /dev/urandom | cksum | cut -f1 -d \" \" )" ,
4848
4949 "tests" : [
5050 " @linter" ,
Original file line number Diff line number Diff line change 1010 failOnRisky =" true"
1111 failOnWarning =" true" >
1212 <testsuites >
13- <testsuite name =" Unit Tests " >
13+ <testsuite name =" Unit" >
1414 <directory suffix =" .php" >tests/Unit</directory >
1515 </testsuite >
1616 </testsuites >
You can’t perform that action at this time.
0 commit comments