forked from Florin-Popescu/vscode-unity-test-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
159 lines (159 loc) · 7.25 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
{
"name": "vscode-unity-test-adapter",
"displayName": "C Unity Test Explorer",
"description": "Run your C unit tests using the Unity framework in the Sidebar of Visual Studio Code",
"icon": "img/icon.png",
"author": "Florin Popescu",
"publisher": "fpopescu",
"version": "0.1.4",
"license": "MIT",
"homepage": "https://github.com/Florin-Popescu/vscode-unity-test-adapter",
"repository": {
"type": "git",
"url": "https://github.com/Florin-Popescu/vscode-unity-test-adapter.git"
},
"bugs": {
"url": "https://github.com/Florin-Popescu/vscode-unity-test-adapter/issues"
},
"engines": {
"vscode": "^1.84.0"
},
"categories": [
"Other"
],
"keywords": [
"test",
"testing"
],
"activationEvents": [
"onStartupFinished"
],
"main": "out/main.js",
"contributes": {
"configuration": {
"type": "object",
"title": "Unity Test Explorer",
"properties": {
"unityExplorer.enable": {
"markdownDescription": "Configuration to enable or disable the extension for a workspace.",
"type": "boolean",
"default": true,
"scope": "resource"
},
"unityExplorer.debugConfiguration": {
"markdownDescription": "Configuration to run when debugging tests.",
"type": "string",
"scope": "resource"
},
"unityExplorer.prettyTestCaseRegex": {
"markdownDescription": "Regular expression to be used to simplify the test case label which by default is the full function name. Put what you want to keep in the first matching group and the rest will be removed. Leave blank to disable this. E.g. To go from `test_BlinkTaskShouldToggleLed` to `BlinkTaskShouldToggleLed`, regular expression which could be used is `test_(\\w+)`.",
"type": "string",
"default": "(.*)",
"scope": "resource"
},
"unityExplorer.prettyTestFileRegex": {
"markdownDescription": "Regular expression to be used to simplify the test file label which by default contains the relative path to the file as well as its extension. Put what you want to keep in the first matching group and the rest will be removed. Leave blank to disable this. E.g. To go from `test/LEDs/test_BlinkTask.c` to `BlinkTask`, regular expression which could be used is `test_(\\w+)\\.c`.",
"type": "string",
"default": "(.*)",
"scope": "resource"
},
"unityExplorer.unitUnderTestFolder": {
"markdownDescription": "The path the extension should use to look for the unit under test source files. By default the workspace root is used.",
"type": "string",
"default": ".",
"scope": "resource"
},
"unityExplorer.unitUnderTestFileRegex": {
"markdownDescription": "Regular expression against which unit under test source files should match. These are tracked for changes to mark test results as old if not re-run.",
"type": "string",
"default": "\\w+\\.[ch]",
"scope": "resource"
},
"unityExplorer.testSourceFolder": {
"markdownDescription": "The path the extension should use to look for the unit test source files. By default the workspace root is used.",
"type": "string",
"default": ".",
"scope": "resource"
},
"unityExplorer.testSourceFileRegex": {
"markdownDescription": "Regular expression against which test source files should match.",
"type": "string",
"default": "test_\\w+\\.c",
"scope": "resource"
},
"unityExplorer.testCaseRegex": {
"markdownDescription": "Regular expression against which test cases in a file should match. The actual test case name must be put in the first matching group.",
"type": "string",
"scope": "resource"
},
"unityExplorer.preBuildCommand": {
"markdownDescription": "Any command which must be run before building the unit tests. If empty, no command will be run.",
"type": "string",
"scope": "resource"
},
"unityExplorer.testBuildApplication": {
"markdownDescription": "Application used to build the tests (e.g. `make`, `cmake`, `gcc`). A test will be built by running this with the `testBuildTargetRegex` as build target (e.g. `make unitTest.exe`).",
"type": "string",
"default": "make",
"scope": "resource"
},
"unityExplorer.testBuildCwdPath": {
"markdownDescription": "The current working directory where the build command will be run in. By default the workspace root is used.",
"type": "string",
"default": ".",
"scope": "resource"
},
"unityExplorer.testBuildArgs": {
"markdownDescription": "Any additional arguments that need to be passed to the build command when building a test. Note that the target to be built is passed separately, so there is no need to add it here.",
"type": "string",
"scope": "resource"
},
"unityExplorer.testBuildTargetRegex": {
"markdownDescription": "Regular expression which should be applied to the test source file name (without extension) to produce a target for the build system. A `$1` will be replaced with the file name. By default just the source file name without extension will be used (e.g. for `test/unitTest.c`, `make unitTest` will be called).",
"type": "string",
"default": "$1",
"scope": "resource"
},
"unityExplorer.testExecutableRegex": {
"markdownDescription": "Regular expression which should be applied to the test source file name (without extension) to produce the executable file name to run the test. A `$1` will be replaced with the file name. By default just the source file name without extension will be used (e.g. for `test/unitTest.c`, `unitTest` will be ran).",
"type": "string",
"default": "$1",
"scope": "resource"
},
"unityExplorer.testExecutableArgs": {
"markdownDescription": "Any additional arguments that need to be passed to the test executable when running it.",
"type": "string",
"scope": "resource"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"package": "mkdir -p dist && vsce package -o dist/cunity-test.vsix --no-yarn",
"deploy:local": "npm run package && code --install-extension dist/cunity-test.vsix --force --profile Exercism",
"deploy:local-insiders": "npm run package && code-insiders --install-extension dist/cunity-test.vsix --force --profile Exercism"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.6",
"@types/node": "20.10.0",
"@types/vscode": "^1.84.2",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@vscode/test-electron": "^2.3.8",
"eslint": "^8.54.0",
"glob": "8.1.0",
"mocha": "^10.2.0",
"typescript": "^5.3.2"
},
"dependencies": {
"async-mutex": "^0.4.0",
"tree-kill": "^1.2.2"
}
}