Skip to content

Commit

Permalink
docs(Makefile): fix some commands
Browse files Browse the repository at this point in the history
  • Loading branch information
AlcidesRC committed Aug 24, 2024
1 parent 9231bbc commit 4f908cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ else
RESET := ""
endif

#---

RANDOM_SEED := $(shell head -200 /dev/urandom | cksum | cut -f1 -d " ")

###
# HELP
Expand Down Expand Up @@ -132,13 +129,13 @@ phpstan: ## QA: <composer phpstan>
tests: ## QA: <composer tests>
@$(eval testsuite ?= 'Unit')
@$(eval filter ?= '.')
@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)
@composer tests --testsuite=$(testsuite) --filter=$(filter)
$(call taskDone)

.PHONY: tests-unit
tests-unit: ## QA: <composer tests-unit>
@$(eval filter ?= '.')
@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)
@composer tests-unit --filter=$(filter)
$(call taskDone)

.PHONY: coverage
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"phpcs": "vendor/bin/phpcs -p --colors --standard=phpcs.xml",
"phpcbf": "vendor/bin/phpcbf -p --colors --standard=phpcs.xml",
"phpstan": "vendor/bin/phpstan analyse --ansi --memory-limit=1G --no-progress --configuration=phpstan.neon",
"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 \" \")",
"phpunit": "vendor/bin/phpunit --configuration=phpunit.xml --testdox --colors --order-by=random --random-order-seed=$(head -200 /dev/urandom | cksum | cut -f1 -d \" \")",

"tests": [
"@linter app/ tests/",
Expand All @@ -54,7 +54,7 @@
"tests-unit": [
"@linter app/ tests/",
"@phpcs",
"@phpunit --testsuite=Unit --coverage-text"
"@phpunit --coverage-text --testsuite=Unit"
],

"coverage": [
Expand Down

0 comments on commit 4f908cd

Please sign in to comment.