-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtest-coverage.json
More file actions
53 lines (52 loc) · 1.69 KB
/
Copy pathtest-coverage.json
File metadata and controls
53 lines (52 loc) · 1.69 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
46
47
48
49
50
51
52
53
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://koriym.github.io/xdebug-mcp/schemas/test-coverage.json",
"title": "Test Coverage Result",
"description": "Ultra-simple test coverage data with raw Xdebug coverage information for AI analysis. Designed for generic PHP script coverage collection with vendor directory exclusion.",
"type": "object",
"properties": {
"$schema": {
"type": "string",
"const": "https://koriym.github.io/xdebug-mcp/schemas/test-coverage.json",
"description": "JSON Schema reference for test coverage data"
},
"coverage": {
"type": "object",
"description": "Raw Xdebug code coverage data mapping file paths to line execution status",
"patternProperties": {
"^(?:/|[A-Za-z]:\\\\).+\\.php$": {
"type": "object",
"description": "Coverage data for a specific PHP file with line numbers as keys",
"patternProperties": {
"^[0-9]+$": {
"type": "integer",
"enum": [1, -1, -2],
"description": "Line execution status: 1 = executed, -1 = executable but not executed, -2 = not executable"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"required": ["$schema", "coverage"],
"additionalProperties": false,
"examples": [
{
"$schema": "https://koriym.github.io/xdebug-mcp/schemas/test-coverage.json",
"coverage": {
"/path/to/MyClass.php": {
"10": 1,
"11": 1,
"12": -1,
"15": 1
},
"/path/to/AnotherClass.php": {
"5": 1,
"6": -1
}
}
}
]
}