Skip to content

Commit eeddd9b

Browse files
committed
Make sure infection runs locally too
Signed-off-by: Luís Cobucci <[email protected]>
1 parent 97ce569 commit eeddd9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ vendor/composer/installed.json: composer.json composer.lock
1212

1313
.PHONY: phpunit
1414
phpunit:
15-
@vendor/bin/phpunit --testsuite=unit
15+
@php -d zend.assertions=1 vendor/bin/phpunit --testsuite=unit
1616

1717
.PHONY: infection
1818
infection:
19-
@vendor/bin/phpunit --testsuite=unit --coverage-xml=build/coverage-xml --log-junit=build/junit.xml $(PHPUNIT_FLAGS)
20-
@vendor/bin/infection -s --threads=$(PARALLELISM) --coverage=build $(INFECTION_FLAGS)
19+
@php -d zend.assertions=1 -d xdebug.mode=coverage vendor/bin/phpunit --testsuite=unit --coverage-xml=build/coverage-xml --log-junit=build/junit.xml $(PHPUNIT_FLAGS)
20+
@php -d zend.assertions=1 vendor/bin/infection -s --threads=$(PARALLELISM) --coverage=build $(INFECTION_FLAGS)
2121

2222
.PHONY: phpcbf
2323
phpcbf:

0 commit comments

Comments
 (0)