Skip to content

Commit e6513ba

Browse files
committed
ci(#60): Implement infection/infection in extensions
1 parent b9ae11c commit e6513ba

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

composer.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fusonic/api-documentation-bundle",
33
"license": "MIT",
4-
"version": "0.0.13",
4+
"version": "0.0.14",
55
"description": "Symfony bundle for automated documentation with NelmioApiDocBundle.",
66
"type": "symfony-bundle",
77
"authors": [
@@ -25,6 +25,7 @@
2525
},
2626
"require-dev": {
2727
"friendsofphp/php-cs-fixer": "^3.40",
28+
"infection/infection": "^0.27.10",
2829
"phpstan/phpstan": "^1.10.47",
2930
"phpstan/phpstan-phpunit": "^1.3",
3031
"phpstan/phpstan-strict-rules": "^1.5",
@@ -49,10 +50,14 @@
4950
"phpstan": "XDEBUG_MODE=off php -d memory_limit=2048M vendor/bin/phpstan analyse",
5051
"phpcs-check": "XDEBUG_MODE=off vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --dry-run --diff --using-cache=yes",
5152
"phpcs-fix": "XDEBUG_MODE=off vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --using-cache=yes",
53+
"infection": "XDEBUG_MODE=coverage vendor/bin/infection",
5254
"test": "XDEBUG_MODE=off vendor/bin/phpunit --testdox",
53-
"test-coverage" : "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-cobertura=coverage/cobertura.xml --coverage-html=coverage/html"
55+
"test-coverage" : "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-cobertura=coverage/phpunit/cobertura.xml --coverage-html=coverage/phpunit/html"
5456
},
5557
"config": {
56-
"sort-packages": true
58+
"sort-packages": true,
59+
"allow-plugins": {
60+
"infection/extension-installer": true
61+
}
5762
}
5863
}

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)