-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
288 lines (288 loc) · 12.8 KB
/
package.json
File metadata and controls
288 lines (288 loc) · 12.8 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
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
{
"name": "ddt",
"publisher": "spencerjames",
"version": "0.3.0",
"description": "Generate C# Xunit test class files for C# files or entire C# projects.",
"displayName": "Development-Driven Testing",
"shortName": "DDT",
"author": {
"name": "Spencer James",
"email": "apps@swsj.me",
"url": "https://swsj.me/"
},
"bugs": {
"url": "https://github.com/kokoabim/vscode-development-driven-testing/issues",
"email": "apps@swsj.me"
},
"repository": {
"type": "git",
"url": "https://github.com/kokoabim/vscode-development-driven-testing"
},
"license": "SEE LICENSE IN LICENSE.md",
"icon": "./dist/media/ddt-icon-128px.png",
"engines": {
"vscode": "^1.96.0"
},
"homepage": "https://github.com/kokoabim/vscode-development-driven-testing/blob/main/README.md",
"categories": [
"Testing"
],
"keywords": [
"c#",
"xunit",
"test",
"tdd",
"ddt"
],
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"category": "DDT",
"title": "Copy Xunit Test Class(es)",
"command": "kokoabim.ddt.copy-test-classes-for-file",
"enablement": "editorLangId == csharp || resourceLangId == csharp"
},
{
"category": "DDT",
"title": "Create Xunit Test File(s)",
"command": "kokoabim.ddt.create-test-file-for-file",
"enablement": "editorLangId == csharp || resourceLangId == csharp"
},
{
"category": "DDT",
"title": "Create Xunit Test Files For All Files In Project...",
"command": "kokoabim.ddt.create-test-files-for-project",
"enablement": "editorLangId == csharp || resourceLangId == csharp || resourceExtname == .csproj"
},
{
"category": "DDT",
"title": "Add TestServiceProvider Support To Project...",
"command": "kokoabim.ddt.add-testserviceprovider-support",
"enablement": "editorLangId == csharp || resourceLangId == csharp || resourceExtname == .csproj"
}
],
"menus": {
"editor/context": [
{
"command": "kokoabim.ddt.copy-test-classes-for-file",
"when": "editorLangId == csharp || resourceLangId == csharp",
"group": "9_cutcopypaste"
},
{
"command": "kokoabim.ddt.create-test-file-for-file",
"when": "editorLangId == csharp || resourceLangId == csharp",
"group": "1_modification"
},
{
"command": "kokoabim.ddt.create-test-files-for-project",
"when": "editorLangId == csharp || resourceLangId == csharp || resourceExtname == .csproj",
"group": "1_modification"
}
],
"explorer/context": [
{
"command": "kokoabim.ddt.copy-test-classes-for-file",
"when": "editorLangId == csharp || resourceLangId == csharp",
"group": "5_cutcopypaste"
},
{
"command": "kokoabim.ddt.create-test-file-for-file",
"when": "editorLangId == csharp || resourceLangId == csharp",
"group": "7_modification"
},
{
"command": "kokoabim.ddt.create-test-files-for-project",
"when": "editorLangId == csharp || resourceLangId == csharp || resourceExtname == .csproj",
"group": "7_modification"
}
]
},
"configuration": {
"title": "Development-Driven Testing (DDT)",
"properties": {
"ddt.defaultNamespace": {
"title": "Default Namespace",
"description": "If a namespace cannot be detected, use this value when generating test classes. This most likely will not occur.",
"type": "string",
"default": "DevelopmentDrivenTesting"
},
"ddt.disableCompilerWarnings": {
"title": "Disable Compiler Warnings",
"description": "If `true`, certain compiler warnings are disabled in generated test classes. (This is mostly used to limit IDE warnings after tests are generated and before actual test logic is added.)",
"type": "boolean",
"default": false
},
"ddt.methodNamesToIgnore": {
"title": "Method Names to Ignore",
"description": "Method names to ignore when generating test methods.",
"type": "array",
"default": [
"Dispose",
"Equals",
"GetHashCode",
"GetType",
"MemberwiseClone",
"ToString"
]
},
"ddt.doNothingRegardingNullability": {
"title": "Do Nothing Regarding Nullability",
"description": "Do nothing regarding nullability. Settings `ddt.indicateTypeNullability` and `ddt.typesNotToBeIndicatedAsNullable` will be ignored. Original nullability on types will be used.",
"type": "boolean",
"default": true
},
"ddt.indicateTypeNullability": {
"title": "Indicate Type Nullability",
"description": "If `true`, nullability is indicated by appending `?` to types that can be assigned `null`. If `false`, nullability is removed. (This is mostly used to limit IDE warnings after tests are generated and before actual test logic is added.)",
"type": "boolean",
"default": false
},
"ddt.typesNotToBeIndicatedAsNullable": {
"title": "Types Not to be Indicated as Nullable",
"description": "Types not to be indicated as nullable.",
"type": "array",
"default": [
"bool",
"Boolean",
"byte",
"Byte",
"char",
"Char",
"decimal",
"Decimal",
"double",
"Double",
"float",
"int",
"Int16",
"Int32",
"Int64",
"IntPtr",
"long",
"nint",
"nuint",
"sbyte",
"SByte",
"short",
"Single",
"System.Boolean",
"System.Byte",
"System.Char",
"System.Decimal",
"System.Double",
"System.Int16",
"System.Int32",
"System.Int64",
"System.IntPtr",
"System.SByte",
"System.Single",
"System.UInt16",
"System.UInt32",
"System.UInt64",
"System.UIntPtr",
"uint",
"UInt16",
"UInt32",
"UInt64",
"UIntPtr",
"ulong",
"ushort",
"void"
]
},
"ddt.objectTypeForGenericParameters": {
"title": "Object Type for Generic Parameters",
"description": "Replace generic parameters (e.g. `T`, `T1`, `TKey`, etc) with `object`.",
"type": "boolean",
"default": true
},
"ddt.reservedMethodNames": {
"title": "Reserved Method Names",
"description": "If a class has a method with one of these names, its test method will include the `new` modifier (since the test class itself has these).",
"type": "array",
"default": [
"Equals",
"GetHashCode",
"GetType",
"MemberwiseClone",
"ToString"
]
},
"ddt.usingsFileContent": {
"title": "Usings File Content",
"description": "When generated (if it does not exist), test project `Usings.cs` file content.",
"type": "string",
"default": "global using Xunit;\n"
},
"ddt.useOnlyNewOperatorForInstanceInstantiation": {
"title": "Use Only `new` Operator for Instance Instantiation",
"description": "Beginning with C# 9.0, constructor invocation expressions are target-typed. That is, if a target type of an expression is known, you can omit a type name. This setting will only use the `new` operator for instance instantiation.",
"type": "boolean",
"default": false
},
"ddt.testClassNamePrefixIfFileAlreadyExists": {
"title": "Test Class Name Prefix if File Already Exists",
"description": "If a test class file already exists, this prefix will be added to the test class name and appended to the file.",
"type": "string",
"default": "Ddt"
},
"ddt.warningsToDisable": {
"title": "Warnings to Disable",
"description": "Warnings to disable in generated test classes. (This is mostly used to limit IDE warnings.)",
"type": "array",
"default": [
"CS8632",
"IDE0018",
"IDE0059",
"IDE0090",
"xUnit1024"
]
},
"ddt.addTestServiceProviderSupport": {
"title": "Add `TestServiceProvider` Support",
"description": "Adds `TestServiceProvider` and `TestServiceProviderConfiguration` support to the test project on any test class generation. This provides existing service collection and service provider functionality from the target project (if it exists), to provide expected dependency injection functionality in test classes.",
"type": "boolean",
"default": false
},
"ddt.packagesForTestServiceProviderSupport": {
"title": "Packages for `TestServiceProvider` Support",
"description": "Packages to add to project when adding `TestServiceProvider` support.",
"type": "array",
"default": [
"Microsoft.Extensions.Configuration.Json",
"Microsoft.Extensions.DependencyInjection",
"Microsoft.Extensions.Hosting",
"Microsoft.NET.Test.Sdk",
"xunit"
]
}
}
}
},
"scripts": {
"clean": "./clean.sh -y",
"compile": "tsc -p ./ && copyfiles ./media/ddt-icon-128px.png ./dist/ && copyfiles --flat ./tests/CSharpDotNetProject/tests/CSharpDotNetProject.Tests/TestServiceProvider*.cs ./CSharpTemplates/TestServiceProvider/",
"lint": "eslint src",
"pretest": "npm install && npm run compile && npm run lint",
"rebuild": "./clean.sh -iy && npm run compile",
"test": "vscode-test",
"vscode:prepublish": "npm run rebuild && npm prune --omit=dev",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/node": "^22.x",
"@types/vscode": "^1.96.0",
"@typescript-eslint/eslint-plugin": "^8.21.0",
"@typescript-eslint/parser": "^8.21.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.19.0",
"typescript": "^5.7.3"
},
"dependencies": {
"glob": "^11.0.1",
"minimatch": "^10.0.1"
}
}