@@ -57,8 +57,12 @@ tc: ## Run PHPUnit tests with test coverage
5757tc : vendor/bin/phpunit
5858 phpdbg -qrr -d zend.enable_gc=0 $(PHPUNIT ) --coverage-html=dist/coverage --coverage-text
5959
60+ tm : # # Run Infection (Mutation Testing)
61+ tm : vendor/bin/phpunit
62+ $(MAKE ) e2e_020
63+
6064e2e : # # Run end-to-end tests
61- e2e : e2e_004 e2e_005 e2e_011 e2e_013 e2e_014 e2e_015 e2e_016 e2e_017 e2e_018 e2e_019
65+ e2e : e2e_004 e2e_005 e2e_011 e2e_013 e2e_014 e2e_015 e2e_016 e2e_017 e2e_018 e2e_019 e2e_020
6266
6367e2e_004 : # # Run end-to-end tests for the fixture set 004: source code case
6468e2e_004 : bin/php-scoper.phar
@@ -145,6 +149,13 @@ e2e_019: bin/php-scoper.phar fixtures/set019-symfony-console/vendor
145149 php build/set019-symfony-console/main.php > build/set019-symfony-console/output
146150 diff fixtures/set019-symfony-console/expected-output build/set019-symfony-console/output
147151
152+ e2e_020 : # # Run end-to-end tests for the fixture set 020: Infection
153+ e2e_020 : bin/php-scoper.phar fixtures/set020-infection/vendor
154+ php -d zend.enable_gc=0 $(PHPSCOPER ) add-prefix --working-dir=fixtures/set020-infection --output-dir=../../build/set020-infection --force --no-interaction --stop-on-failure
155+ composer --working-dir=build/set020-infection dump-autoload
156+
157+ php build/set020-infection/vendor/infection/infection/bin/infection
158+
148159tb : # # Run Blackfire profiling
149160tb : vendor
150161 rm -rf build
@@ -195,6 +206,9 @@ fixtures/set018-nikic-parser/vendor: fixtures/set018-nikic-parser/composer.lock
195206fixtures/set019-symfony-console/vendor : fixtures/set019-symfony-console/composer.lock
196207 composer --working-dir=fixtures/set019-symfony-console install
197208
209+ fixtures/set020-infection/vendor : fixtures/set020-infection/composer.lock
210+ composer --working-dir=fixtures/set020-infection install
211+
198212composer.lock : composer.json
199213 @echo composer.lock is not up to date.
200214
@@ -222,6 +236,9 @@ fixtures/set018-nikic-parser/composer.lock: fixtures/set018-nikic-parser/compose
222236fixtures/set019-symfony-console/composer.lock : fixtures/set019-symfony-console/composer.json
223237 @echo fixtures/set019-symfony-console/composer.lock is not up to date.
224238
239+ fixtures/set020-infection/composer.lock : fixtures/set020-infection/composer.json
240+ @echo fixtures/set020-infection/composer.lock is not up to date.
241+
225242bin/php-scoper.phar : bin/php-scoper src vendor vendor-bin/box/vendor scoper.inc.php box.json
226243 $(MAKE ) build
227244
0 commit comments