Skip to content

Commit a79ea70

Browse files
committed
ci(#60): Implement infection/infection in extensions
1 parent 29219eb commit a79ea70

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

Diff for: composer.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fusonic/http-kernel-bundle",
33
"description": "Symfony bundle with extensions for Symfony's HttpKernel",
4-
"version": "1.3.1",
4+
"version": "1.3.2",
55
"type": "library",
66
"license": "MIT",
77
"authors": [
@@ -34,6 +34,7 @@
3434
},
3535
"require-dev": {
3636
"friendsofphp/php-cs-fixer": "^3.40",
37+
"infection/infection": "^0.27",
3738
"phpstan/phpstan": "^1.10",
3839
"phpstan/phpstan-phpunit": "^1.3",
3940
"phpstan/phpstan-strict-rules": "^1.5",
@@ -47,12 +48,14 @@
4748
"phpstan": "XDEBUG_MODE=off php -d memory_limit=2048M vendor/bin/phpstan analyse",
4849
"phpcs-check": "XDEBUG_MODE=off vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --diff --dry-run",
4950
"phpcs-fix": "XDEBUG_MODE=off vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -v",
51+
"infection": "XDEBUG_MODE=coverage vendor/bin/infection",
5052
"test": "XDEBUG_MODE=off vendor/bin/phpunit --testdox",
51-
"test-coverage" : "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-cobertura=coverage/cobertura.xml --coverage-html=coverage/html"
53+
"test-coverage" : "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-cobertura=coverage/phpunit/cobertura.xml --coverage-html=coverage/phpunit/html"
5254
},
5355
"config": {
5456
"sort-packages": true,
5557
"allow-plugins": {
58+
"infection/extension-installer": true
5659
}
5760
}
5861
}

Diff for: infection.json5

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "vendor/infection/infection/resources/schema.json",
3+
"source": {
4+
"directories": [
5+
"src"
6+
]
7+
},
8+
"mutators": {
9+
"@default": true
10+
},
11+
"logs": {
12+
"html": "coverage/infection/infection.html"
13+
},
14+
"testFramework":"phpunit",
15+
}

0 commit comments

Comments
 (0)