Skip to content

Commit

Permalink
Added mutation testing to build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Apr 7, 2019
1 parent 9919291 commit ffb821d
Show file tree
Hide file tree
Showing 6 changed files with 1,530 additions and 953 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
build
vendor
.phpunit.result.cache
infection.json
infection.log
phpcs.xml
phpstan.neon
phpunit.xml
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

all: static-analysis test no-leaks cs ## run static analysis, tests, cs
all: static-analysis test no-leaks mutation-test cs ## run static analysis, tests, cs
echo "all good"

static-analysis:
Expand All @@ -16,5 +16,8 @@ test:
no-leaks:
vendor/bin/roave-no-leaks

mutation-test:
vendor/bin/infection --min-msi=58 --min-covered-msi=59

cs:
vendor/bin/phpcs
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"require": {
"php": "^7.3",
"beberlei/assert": "^3.2",
"infection/infection": "^0.12.2",
"php-http/curl-client": "^2.0",
"php-http/discovery": "^1.6",
"php-http/httplug": "^2.0",
Expand Down
Loading

0 comments on commit ffb821d

Please sign in to comment.