Skip to content

Commit

Permalink
feat: more precise Infection, only covering test cases (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarlovi authored Apr 21, 2023
1 parent 5d2b257 commit f19313e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/PHP/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ test/phpunit-coverage: | ${HOME}/.composer var/phpqa composer.lock
$(call block_end)
test/infection: test/phpunit-coverage
$(call block_start,$@)
${PHPQA_DOCKER_COMMAND} infection run --verbose --show-mutations --no-interaction --only-covered --coverage var/phpqa/phpunit/ --threads max
${PHPQA_DOCKER_COMMAND} infection run --verbose --show-mutations --no-interaction --only-covered --only-covering-test-cases --coverage var/phpqa/phpunit/ --threads max
$(call block_end)

${HOME}/.composer:
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/PHP/PhpTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private function paths(?array $env): array

'test: unit' => [
$this->generatePhpqaExecutionPath('php -d pcov.enabled=1 vendor/bin/phpunit --verbose --coverage-text --log-junit=var/phpqa/phpunit/junit.xml --coverage-xml var/phpqa/phpunit/coverage-xml/', phpVersion: $phpVersion, dockerImage: $phpqaDockerImage),
$this->generatePhpqaExecutionPath('infection run --verbose --show-mutations --no-interaction --only-covered --coverage var/phpqa/phpunit/ --threads max', phpVersion: $phpVersion, dockerImage: $phpqaDockerImage),
$this->generatePhpqaExecutionPath('infection run --verbose --show-mutations --no-interaction --only-covered --only-covering-test-cases --coverage var/phpqa/phpunit/ --threads max', phpVersion: $phpVersion, dockerImage: $phpqaDockerImage),
],
'test: functional app' => [
$this->generateDockerComposeAppExecExecutionPath('vendor/bin/behat --colors --strict', 'test'),
Expand Down

0 comments on commit f19313e

Please sign in to comment.