Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Infection test suite to be executed in parallel using Paratest #1544

Merged
merged 6 commits into from Aug 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions Makefile
Expand Up @@ -27,6 +27,7 @@ PSALM=./.tools/psalm
PSALM_URL="https://github.com/vimeo/psalm/releases/download/4.1.1/psalm.phar"

PHPUNIT=vendor/phpunit/phpunit/phpunit
PARATEST=vendor/bin/paratest --runner=WrapperRunner

INFECTION=./build/infection.phar

Expand Down Expand Up @@ -133,6 +134,11 @@ test-unit: ## Runs the unit tests
test-unit: $(PHPUNIT)
$(PHPUNIT) --group $(PHPUNIT_GROUP)

.PHONY: test-unit-parallel
test-unit-parallel: ## Runs the unit tests in parallel
test-unit-parallel:
$(PARATEST)

.PHONY: test-unit-docker
test-unit-docker: ## Runs the unit tests on the different Docker platforms
test-unit-docker: test-unit-74-docker test-unit-80-docker
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Expand Up @@ -50,7 +50,7 @@
"infection/abstract-testframework-adapter": "^0.3.1",
"infection/extension-installer": "^0.1.0",
"infection/include-interceptor": "^0.2.4",
"justinrainbow/json-schema": "^5.2",
"justinrainbow/json-schema": "^5.2.10",
"nikic/php-parser": "^4.10.3",
"ocramius/package-versions": "^1.9.0 || ^2.0",
"ondram/ci-detector": "^3.3.0",
Expand All @@ -62,7 +62,7 @@
"symfony/filesystem": "^3.4.29 || ^4.1.19 || ^5.0",
"symfony/finder": "^3.4.29 || ^4.1.19 || ^5.0",
"symfony/process": "^3.4.29 || ^4.1.19 || ^5.0",
"thecodingmachine/safe": "^1.0",
"thecodingmachine/safe": "^1.1.3",
"webmozart/assert": "^1.3",
"webmozart/path-util": "^2.3"
},
Expand All @@ -72,6 +72,7 @@
},
"require-dev": {
"ext-simplexml": "*",
"brianium/paratest": "^6.3",
"helmich/phpunit-json-assert": "^3.0",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/extension-installer": "^1.0",
Expand Down