forked from recca0120/vscode-phpunit
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
232 lines (232 loc) · 8.73 KB
/
package.json
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
{
"name": "vscode-php-test-explorer",
"description": "PHP: Unit Test Explorer UI",
"displayName": "PHP: Unit Test Explorer UI",
"icon": "img/icon.png",
"author": "renandelmonico",
"license": "MIT",
"version": "1.0.2",
"preview": true,
"repository": {
"type": "git",
"url": "https://github.com/renandelmonico/vscode-phpunit"
},
"publisher": "renandelmonico",
"contributors": [
"recca0120"
],
"categories": [
"Other",
"Debuggers",
"Programming Languages"
],
"keywords": [
"test",
"testing",
"test explorer",
"phpunit",
"language server protocol",
"codeception"
],
"engines": {
"vscode": "^1.30.0"
},
"activationEvents": [
"*"
],
"extensionDependencies": [
"hbenl.vscode-test-explorer"
],
"main": "./client/out/extension",
"contributes": {
"commands": [
{
"command": "phpunit.run-all",
"title": "PHPUnit: Run all tests"
},
{
"command": "phpunit.run-file",
"title": "PHPUnit: Run tests in current file"
},
{
"command": "phpunit.run-test-at-cursor",
"title": "PHPUnit: Run the test at the current cursor position"
},
{
"command": "phpunit.rerun",
"title": "PHPUnit: Repeat the last test run"
}
],
"keybindings": [
{
"key": "cmd+t cmd+f",
"command": "phpunit.run-file",
"when": "editorTextFocus && editorLangId == php"
},
{
"key": "cmd+t cmd+t",
"command": "phpunit.run-test-at-cursor",
"when": "editorTextFocus && editorLangId == php"
},
{
"key": "cmd+t cmd+l",
"command": "phpunit.rerun",
"when": "editorTextFocus && editorLangId == php"
},
{
"key": "cmd+t cmd+d",
"command": "phpunit.run-directory",
"when": "editorTextFocus && editorLangId == php"
},
{
"key": "cmd+t cmd+s",
"command": "phpunit.run-all"
}
],
"configuration": {
"type": "object",
"title": "PHP: Unit Test Explorer UI",
"properties": {
"phpunit.maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems produced by the server."
},
"phpunit.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"phpunit.logpanel": {
"description": "write diagnotic logs to an output panel",
"type": "boolean",
"scope": "resource"
},
"phpunit.logfile": {
"description": "write diagnostic logs to the given file",
"type": "string",
"scope": "resource"
},
"phpunit.php": {
"type": "string",
"description": "Absolute path to php. Fallback to global php if it exists on the command line. If docker configuration is true this configuration is ignored."
},
"phpunit.phpunit": {
"type": "string",
"description": "Path to phpunit. Can be the phpunit file or phpunit.phar.\n\nAutomatically finds it in common places:\n - Composer vendor directory\n - phpunit.phar in your project\n - phpunit (or phpunit.bat for windows) globally on the command line"
},
"phpunit.discoverConfigFile": {
"type": "boolean",
"default": false,
"description": "If true the extension automatically try to find phpunit.xml or phpunit.xml.dist in you project."
},
"phpunit.configFile": {
"type": "string",
"description": "Path to phpunit.xml or phpunit.xml.dist file."
},
"phpunit.args": {
"type": "array",
"default": [],
"description": "Any phpunit args (phpunit --help) E.g. --configuration ./phpunit.xml.dist"
},
"phpunit.files": {
"description": "The glob(s) describing the location of your test files (relative to the workspace folder)",
"type": "string",
"items": {
"type": "string"
},
"default": "{test,tests,Test,Tests}/**/*Test.php",
"scope": "resource"
},
"phpunit.relativeFilePath": {
"description": "File path as relative argument instead of full path.",
"type": "boolean",
"default": false
},
"phpunit.remoteCwd": {
"description": "Remote file path to the location of the root folder.",
"type": "string",
"default": ""
},
"phpunit.shell": {
"description": "Shell to be used to call php.",
"type": "string",
"default": ""
},
"phpunit.clearOutputOnRun": {
"type": "boolean",
"default": true,
"description": "True will clear the output when we run a new test. False will leave the output after every test."
},
"phpunit.showAfterExecution": {
"type": "string",
"enum": [
"always",
"onFailure",
"never"
],
"default": "onFailure",
"description": "Specify if the test report will automatically be shown after execution",
"scope": "application"
},
"phpunit.docker": {
"type": "boolean",
"default": false
},
"phpunit.dockerImage": {
"type": "string",
"description": "Specifies the docker run command line"
}
}
},
"grammars": [
{
"language": "Log",
"scopeName": "code.log",
"path": "./client/syntaxes/phpunit.tmLanguage"
}
]
},
"scripts": {
"vscode:prepublish": "cd client && npm run update-vscode && cd .. && npm run clean && npm run compile",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"compile": "npm run compile:client && npm run compile:server",
"compile:client": "webpack --mode production --config ./client/webpack.config.js",
"_compile:client": "tsc -b ./client/tsconfig.json",
"compile:server": "webpack --mode production --config ./server/webpack.config.js",
"watch:client": "tsc -b -w ./client/tsconfig.json",
"_watch:client": "webpack --mode none --config ./client/webpack.config.js --watch",
"watch:server": "webpack --mode none --config ./server/webpack.config.js --watch",
"watch": "tsc -b -w",
"clean": "rimraf client/out && rimraf server/out",
"test": "sh ./scripts/e2e.sh",
"jest": "npm run compile && jest",
"jest:watch": "jest --watch",
"report": "jest --coverage",
"report:watch": "jest --coverage --watch"
},
"devDependencies": {
"@types/jest": "^24.9.1",
"@types/node": "^12.20.41",
"@types/vscode": "^1.30.0",
"jest": "^28.1.0",
"merge-options": "^1.0.1",
"rimraf": "^2.7.1",
"ts-jest": "^28.0.1",
"ts-loader": "^6.2.2",
"tslint": "^5.20.1",
"typescript": "^3.9.10",
"webpack": "^5.72.0",
"webpack-cli": "^3.3.12"
},
"dependencies": {
"@vscode/test-electron": "^2.0.3"
}
}