-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinfection.json5
More file actions
45 lines (45 loc) · 1.58 KB
/
Copy pathinfection.json5
File metadata and controls
45 lines (45 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
// Infection Mutation Testing Configuration for PowerDownload
//
// REQUIREMENTS: Code coverage extension required (pcov, xdebug, or phpdbg)
// - Recommended: composer require --dev pcov/clobber && php -d pcov.enabled=1
// - Alternative: Enable Xdebug with coverage mode
// - Or use: phpdbg -qrr vendor/bin/infection
//
// LIMITATION: Infection v0.32 only generates mutations for class methods,
// NOT for standalone functions. Files like pdl_functions.inc.php with
// global functions will show 0 mutations. Only pdl_db_class_mysql.inc.php
// (which contains a class) will have mutations generated.
// Run with: INFECTION_ALLOW_XDEBUG=1 php vendor/bin/infection --with-uncovered
//
"$schema": "https://raw.githubusercontent.com/infection/infection/0.29.0/resources/schema.json",
"source": {
"directories": [
"pdl-inc"
],
"excludes": [
"pdl_config.inc.php"
]
},
"logs": {
"text": "logs/infection.log",
"html": "logs/infection.html",
"summary": "logs/infection-summary.log"
},
"mutators": {
"@default": true,
// Disable some mutators that create too many false positives in legacy code
"Concat": false,
"ConcatOperandRemoval": false
},
"phpUnit": {
"configDir": ".",
"customPath": "vendor/bin/phpunit"
},
"testFramework": "phpunit",
"bootstrap": "vendor/autoload.php",
"initialTestsPhpOptions": "-d memory_limit=256M",
"timeout": 10,
"minMsi": 0,
"minCoveredMsi": 0
}