Skip to content

Commit 61948fe

Browse files
docs: Add mutation-static command to composer scripts and update testing documentation. (#59)
1 parent 6f37473 commit 61948fe

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Change Log
2+
3+
## 0.1.0 July 4, 2025
4+
5+
- Initial release

changelog.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"check-dependencies": "./vendor/bin/composer-require-checker check",
5353
"ecs": "./vendor/bin/ecs --fix",
5454
"mutation": "./vendor/bin/infection --threads=4 --ignore-msi-with-no-mutations --only-covered --min-msi=100 --min-covered-msi=100",
55+
"mutation-static": "./vendor/bin/infection --threads=4 --ignore-msi-with-no-mutations --only-covered --min-msi=100 --min-covered-msi=100 --static-analysis-tool=phpstan",
5556
"rector": "./vendor/bin/rector process src",
5657
"static": "./vendor/bin/phpstan --memory-limit=512M",
5758
"tests": "./vendor/bin/phpunit"

docs/testing.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ Mutation testing is checked with [Infection](https://infection.github.io/). To r
2727
composer run mutation
2828
```
2929

30+
With PHPStan analysis, it will also check for static analysis issues during mutation testing.
31+
32+
```shell
33+
composer run mutation-static
34+
```
35+
3036
## Static analysis
3137

32-
The code is statically analyzed with [Phpstan](https://phpstan.org/). To run static analysis.
38+
The code is statically analyzed with [PHPStan](https://phpstan.org/). To run static analysis.
3339

3440
```shell
3541
composer run static

infection.json5

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,5 @@
1010
"directories": [
1111
"src"
1212
]
13-
},
14-
"phpStan": {
15-
"configDir": "."
16-
},
13+
}
1714
}

0 commit comments

Comments
 (0)