forked from elonmallin/vscode-phpunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
236 lines (236 loc) · 8 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
233
234
235
236
{
"name": "phpunit",
"displayName": "PHPUnit",
"description": "Run PHPUnit tests from VSCode.",
"version": "4.1.1",
"publisher": "emallin",
"icon": "images/phpunit.png",
"engines": {
"vscode": "^1.44.0"
},
"categories": [
"Other"
],
"repository": {
"type": "git",
"url": "https://github.com/elonmallin/vscode-phpunit"
},
"homepage": "https://github.com/elonmallin/vscode-phpunit/blob/master/README.md",
"bugs": {
"url": "https://github.com/elonmallin/vscode-phpunit/issues"
},
"license": "SEE LICENSE IN LICENSE.md",
"keywords": [
"phpunit",
"test",
"unittest",
"php",
"docker",
"ssh"
],
"activationEvents": [
"onCommand:phpunit.Test",
"onCommand:phpunit.TestNearest",
"onCommand:phpunit.TestSuite",
"onCommand:phpunit.TestDirectory",
"onCommand:phpunit.RerunLastTest",
"onCommand:phpunit.TestingStop"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "phpunit.Test",
"title": "PHPUnit Test"
},
{
"command": "phpunit.TestNearest",
"title": "PHPUnit Test Nearest"
},
{
"command": "phpunit.TestSuite",
"title": "PHPUnit Test Suite"
},
{
"command": "phpunit.TestDirectory",
"title": "PHPUnit Test Directory"
},
{
"command": "phpunit.RerunLastTest",
"title": "PHPUnit Rerun Last Test"
},
{
"command": "phpunit.TestingStop",
"title": "PHPUnit Stop Running Tests"
}
],
"configuration": {
"type": "object",
"title": "PHPUnit Configuration",
"properties": {
"phpunit.driverPriority": {
"type": "array",
"default": [
"Command",
"Ssh",
"Path",
"Composer",
"Phar",
"DockerContainer",
"Docker",
"GlobalPhpUnit"
],
"description": "Set the priority of drivers to try and run phpunit with. The drivers will try and find phpunit in common places."
},
"phpunit.php": {
"type": "string",
"description": "Absolute path to php. Fallback to global php if it exists on the command line.",
"default": null
},
"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",
"default": null
},
"phpunit.ssh": {
"type": "string",
"description": "DEPRECATED: Please use the [Remote Development Extension by Microsoft](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack) for a great remote development experience.\n\nCustom ssh command to run Ex: `ssh root@localhost`.\nREQUIRED: Public/private keys are required to use ssh, passwords won't work.\n\nThe command will resolve to `ssh root@localhost \"<command>\"` where `<command>` is populated like normal by the extension and could be something like `php ./phpunit.phar -c phpunit.xml` depending on your settings.\n\nYou may also want to use the `phpunit.paths` setting to map local paths to remote ones.\n\nHow to setup ssh public/private keys:\n - Windows powershell `ssh-keygen && cat $env:userprofile/.ssh/id_rsa.pub | ssh root@localhost 'cat >> .ssh/authorized_keys'`\n - Linux bash `ssh-keygen && ssh-copy-id root@localhost`",
"default": null
},
"phpunit.command": {
"type": "string",
"description": "Custom command to run. Ex: `docker exec -t container_name`.",
"default": null
},
"phpunit.args": {
"type": "array",
"default": [],
"description": "Any phpunit args (phpunit --help) E.g. --configuration ./phpunit.xml.dist"
},
"phpunit.preferRunClassTestOverQuickPickWindow": {
"type": "boolean",
"default": false,
"description": "If we should test the whole class instead of showing the quick pick window when cursor is on anything but a function name."
},
"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.colors": {
"type": "string",
"default": "--colors=always",
"description": "Will add argument `--colors=always` to the `phpunit` command or whatever is set here. `null` or empty string removes this setting."
},
"phpunit.docker.image": {
"type": "string",
"description": "DEPRECATED: Please use the [Remote Development Extension by Microsoft](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack) for a great remote development experience.\n\nDocker image to use for php.",
"default": "php"
},
"phpunit.docker.container": {
"type": "string",
"description": "DEPRECATED: Please use the [Remote Development Extension by Microsoft](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack) for a great remote development experience.\n\nDocker container to run the unit tests in. Note that you have to set paths for this to work.",
"default": null
},
"phpunit.paths": {
"type": "object",
"description": "Path mappings for your virtual/remote environments. Ex: { \"local/workspace/folder\": \"docker/workspace/folder\" }"
},
"phpunit.execPath": {
"type": "string",
"description": "DEPRECATED: Use phpunit.php and phpunit.phpunit instead."
},
"phpunit.envVars": {
"type": "object",
"title": "Set environment variables before running the phpunit command"
}
}
},
"problemMatchers": [
{
"name": "phpunit",
"owner": "php",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "^\\d+\\)\\s.*$"
},
{
"regexp": "^(.*)$",
"message": 1
},
{
"regexp": "[\\r\\n]*"
},
{
"regexp": "^(.*):(\\d+)$",
"file": 1,
"location": 2
}
]
},
{
"name": "phpunit-app",
"owner": "php",
"fileLocation": "relative",
"pattern": [
{
"regexp": "^\\d+\\)\\s.*$"
},
{
"regexp": "^(.*)$",
"message": 1
},
{
"regexp": "[\\r\\n]*"
},
{
"regexp": "^/app/(.*):(\\d+)$",
"file": 1,
"location": 2
}
]
}
],
"taskDefinitions": [
{
"type": "phpunit",
"required": [
"task"
],
"properties": {
"task": {
"type": "string",
"description": "The task to execute"
}
}
}
]
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test",
"lint": "tslint --project tsconfig.json",
"lint-fix": "tslint --project tsconfig.json --fix"
},
"devDependencies": {
"@types/mocha": "^7.0.2",
"@types/node": "^13.13.4",
"@types/vscode": "^1.44.0",
"mocha": "^7.1.2",
"prettier": "^2.0.5",
"tslint": "^6.1.2",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.0.1",
"typescript": "^3.3.3333",
"typescript-tslint-plugin": "^0.5.5",
"vscode-test": "^1.3.0"
},
"dependencies": {
"command-exists": "^1.2.8",
"escape-string-regexp": "^4.0.0",
"node-run-cmd": "^1.0.1"
}
}