-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
144 lines (144 loc) · 4.36 KB
/
package.json
File metadata and controls
144 lines (144 loc) · 4.36 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"name": "coverage-visualizer",
"displayName": "Python Coverage Visualizer",
"description": "Visualize Python test coverage inline in VS Code — highlights, CodeLens, dashboard, and sidebar tree view",
"version": "1.0.1",
"publisher": "kool7",
"engines": {
"vscode": "^1.90.0"
},
"license": "MIT",
"icon": "assets/icon-256.png",
"categories": [
"Testing",
"Visualization",
"Other"
],
"keywords": [
"python",
"coverage",
"test coverage",
"pytest",
"pytest-cov",
"visualization"
],
"repository": {
"type": "git",
"url": "https://github.com/kool7/coverage-visualizer"
},
"activationEvents": [
"onStartupFinished",
"onView:coverageVisualizer.filesView"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "coverage-visualizer.show",
"title": "Coverage Visualizer: Show Coverage",
"icon": "$(shield)"
},
{
"command": "coverage-visualizer.clear",
"title": "Coverage Visualizer: Clear Coverage",
"icon": "$(close)"
},
{
"command": "coverage-visualizer.showDashboard",
"title": "Coverage Visualizer: Show Dashboard",
"icon": "$(graph)"
}
],
"views": {
"explorer": [
{
"id": "coverageVisualizer.filesView",
"name": "Coverage",
"when": "true"
}
]
},
"configuration": {
"title": "Coverage Visualizer",
"properties": {
"coverageVisualizer.thresholdGood": {
"type": "number",
"default": 80,
"minimum": 0,
"maximum": 100,
"description": "Coverage % at or above which a file is considered well-covered (shown in green)."
},
"coverageVisualizer.thresholdWarn": {
"type": "number",
"default": 50,
"minimum": 0,
"maximum": 100,
"description": "Coverage % at or above which a file is a warning (yellow). Below this is red."
},
"coverageVisualizer.coveredHighlightColor": {
"type": "string",
"default": "rgba(0, 180, 0, 0.10)",
"description": "Background highlight color for covered lines. Any CSS color string."
},
"coverageVisualizer.uncoveredHighlightColor": {
"type": "string",
"default": "rgba(220, 50, 50, 0.10)",
"description": "Background highlight color for uncovered lines. Any CSS color string."
},
"coverageVisualizer.enableCodeLens": {
"type": "boolean",
"default": true,
"description": "Show coverage % above each function and class definition."
},
"coverageVisualizer.enableHoverMessages": {
"type": "boolean",
"default": true,
"description": "Show covered / not-covered tooltip when hovering a highlighted line."
},
"coverageVisualizer.autoReloadOnChange": {
"type": "boolean",
"default": true,
"description": "Automatically reload coverage when coverage.json / coverage.xml / .coverage changes on disk."
},
"coverageVisualizer.coverageJsonPath": {
"type": "string",
"default": "coverage.json",
"description": "Path to coverage.json relative to workspace root. Generate with: pytest --cov=. --cov-report=json"
},
"coverageVisualizer.excludeTestFiles": {
"type": "boolean",
"default": true,
"description": "Skip decorations and CodeLens on test files (test_*.py, *_test.py, files inside tests/ directories)."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run bundle",
"bundle": "node esbuild.js",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src --ext ts",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage"
},
"devDependencies": {
"@electron/rebuild": "^3.7.2",
"@types/jest": "^30.0.0",
"@types/node": "^20.x",
"@types/sql.js": "^1.4.11",
"@types/vscode": "^1.90.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"esbuild": "^0.28.0",
"eslint": "^8.0.0",
"jest": "^30.3.0",
"ts-jest": "^29.4.9",
"ts-node": "^10.9.2",
"typescript": "^5.4.0"
},
"dependencies": {
"sql.js": "^1.14.1"
}
}