Skip to content

Commit 4f908cd

Browse files
committed
docs(Makefile): fix some commands
1 parent 9231bbc commit 4f908cd

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ else
2626
RESET := ""
2727
endif
2828

29-
#---
30-
31-
RANDOM_SEED := $(shell head -200 /dev/urandom | cksum | cut -f1 -d " ")
3229

3330
###
3431
# HELP
@@ -132,13 +129,13 @@ phpstan: ## QA: <composer phpstan>
132129
tests: ## QA: <composer tests>
133130
@$(eval testsuite ?= 'Unit')
134131
@$(eval filter ?= '.')
135-
@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)
132+
@composer tests --testsuite=$(testsuite) --filter=$(filter)
136133
$(call taskDone)
137134

138135
.PHONY: tests-unit
139136
tests-unit: ## QA: <composer tests-unit>
140137
@$(eval filter ?= '.')
141-
@php -d xdebug.mode=off vendor/bin/phpunit --configuration=phpunit.xml --testdox --colors --order-by=random --random-order-seed=$(RANDOM_SEED) --testsuite=Unit --filter=$(filter)
138+
@composer tests-unit --filter=$(filter)
142139
$(call taskDone)
143140

144141
.PHONY: coverage

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"phpcs": "vendor/bin/phpcs -p --colors --standard=phpcs.xml",
4545
"phpcbf": "vendor/bin/phpcbf -p --colors --standard=phpcs.xml",
4646
"phpstan": "vendor/bin/phpstan analyse --ansi --memory-limit=1G --no-progress --configuration=phpstan.neon",
47-
"phpunit": "php -d xdebug.mode=off vendor/bin/phpunit --configuration=phpunit.xml --testdox --colors --order-by=random --random-order-seed=$(head -200 /dev/urandom | cksum | cut -f1 -d \" \")",
47+
"phpunit": "vendor/bin/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 app/ tests/",
@@ -54,7 +54,7 @@
5454
"tests-unit": [
5555
"@linter app/ tests/",
5656
"@phpcs",
57-
"@phpunit --testsuite=Unit --coverage-text"
57+
"@phpunit --coverage-text --testsuite=Unit"
5858
],
5959

6060
"coverage": [

0 commit comments

Comments
 (0)