test: add tests
This commit is contained in:
18
Makefile
Normal file
18
Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
.PHONY: all
|
||||
all: ./vendor
|
||||
|
||||
.PHONY: test
|
||||
test: ./vendor
|
||||
./vendor/bin/phpunit tests
|
||||
|
||||
.PHONY: lint
|
||||
lint: ./vendor
|
||||
./vendor/bin/psalm --show-info=true
|
||||
|
||||
docs/coverage: ./vendor $(wildcard src/**.php) $(wildcard tests/**.php)
|
||||
XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-html docs/coverage tests
|
||||
@touch $@
|
||||
|
||||
./vendor: composer.json composer.lock
|
||||
composer install
|
||||
@touch $@
|
||||
Reference in New Issue
Block a user