Skip to content

Commit

Permalink
Mutation fixed (#12)
Browse files Browse the repository at this point in the history
* Mutation fixed
* Increase MSI and C-MSI
  • Loading branch information
Spomky authored May 12, 2023
1 parent 139c43e commit b7f2a7c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ updates:
open-pull-requests-limit: 20
allow:
- dependency-type: all
labels: [ "Dependencies" ]
labels: [ "dependencies" ]

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 20
labels: [ "Dependencies" ]
labels: [ "dependencies" ]
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: mu
mu: vendor ## Mutation tests
vendor/bin/infection -s --threads=$$(nproc) --min-msi=80 --min-covered-msi=80
vendor/bin/infection -s --threads=$$(nproc) --min-msi=87 --min-covered-msi=89

.PHONY: tests
tests: vendor ## Run all tests
Expand All @@ -9,7 +9,7 @@ tests: vendor ## Run all tests

.PHONY: cc
cc: vendor ## Show test coverage rates (HTML)
vendor/bin/phpunit --coverage-html ./build
vendor/bin/phpunit

.PHONY: cs
cs: vendor ## Fix all files using defined ECS rules
Expand All @@ -36,11 +36,11 @@ st: vendor ## Run static analyse

.PHONY: ci-mu
ci-mu: vendor ## Mutation tests (for CI/CD only)
vendor/bin/infection --logger-github -s --threads=$$(nproc) --min-msi=80 --min-covered-msi=80
vendor/bin/infection --logger-github -s --threads=$$(nproc) --min-msi=87 --min-covered-msi=89

.PHONY: ci-cc
ci-cc: vendor ## Show test coverage rates (for CI/CD only)
vendor/bin/phpunit --coverage-text
XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text

.PHONY: ci-cs
ci-cs: vendor ## Check all files using defined ECS rules (for CI/CD only)
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-strict-rules": "^1.0",
"phpunit/phpunit": "^10.0",
"phpunit/phpunit": "^10.1",
"qossmic/deptrac-shim": "^1.0",
"rector/rector": "^0.15",
"rector/rector": "^0.16",
"roave/security-advisories": "dev-latest",
"symfony/cache": "^6.2",
"symfony/clock": "^6.2",
Expand Down
15 changes: 8 additions & 7 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@
bootstrap="vendor/autoload.php"
colors="true"
executionOrder="random"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
cacheDirectory=".phpunit.cache"
displayDetailsOnTestsThatTriggerWarnings="true"
>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<coverage/>
<testsuites>
<testsuite name="WebPush Bundle Test">
<directory>./tests/Bundle</directory>
Expand All @@ -28,7 +24,12 @@
<ini name="memory_limit" value="-1"/>
<server name="KERNEL_CLASS" value="WebPush\Tests\AppKernel"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
<server name="SYMFONY_PHPUNIT_VERSION" value="9.6"/>
<server name="SYMFONY_PHPUNIT_VERSION" value="10.0"/>
<server name="APP_DEBUG" value="false"/>
</php>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>

0 comments on commit b7f2a7c

Please sign in to comment.