-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpackage.json
More file actions
280 lines (280 loc) · 11.2 KB
/
Copy pathpackage.json
File metadata and controls
280 lines (280 loc) · 11.2 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
{
"name": "vscode-ibmi-testing",
"displayName": "IBM i Testing",
"description": "IBM i Testing extension for VS Code",
"icon": "icon.png",
"author": {
"name": "IBM",
"url": "https://github.com/IBM"
},
"publisher": "IBM",
"license": "Apache-2.0",
"version": "1.3.4",
"repository": {
"type": "git",
"url": "https://github.com/IBM/vscode-ibmi-testing"
},
"homepage": "https://codefori.github.io/docs/developing/testing/overview",
"bugs": {
"url": "https://github.com/IBM/vscode-ibmi-testing/issues"
},
"keywords": [
"ibmi",
"iseries",
"as400",
"test",
"irpgunit"
],
"engines": {
"vscode": "^1.96.0"
},
"categories": [
"Testing"
],
"activationEvents": [
"onStartupFinished"
],
"extensionDependencies": [
"halcyontechltd.code-for-ibmi",
"halcyontechltd.vscode-rpgle"
],
"main": "./dist/extension.js",
"contributes": {
"jsonValidation": [
{
"fileMatch": [
"testing.json",
"TESTING.JSON"
],
"url": "./schemas/testing.json"
}
],
"configuration": [
{
"title": "IBM i Testing",
"properties": {
"IBM i Testing.productLibrary": {
"order": 0,
"type": "string",
"default": "RPGUNIT",
"markdownDescription": "Specifies the name of the RPGUnit product library on the host."
},
"IBM i Testing.testSourceFiles": {
"order": 1,
"type": "array",
"default": [
"QTESTSRC"
],
"items": {
"type": "string",
"description": "The name of a source file containing tests."
},
"markdownDescription": "A set of source files to search for tests in the library list."
},
"IBM i Testing.testStubPreferences": {
"order": 2,
"type": "object",
"default": {
"Show Test Stub Preview": true,
"Test Source File": "QTESTSRC",
"Test Source Directory": "qtestsrc",
"Prompt For Test Name": false,
"Generate Default Test Configuration": true,
"Add Control Options and Directives": true,
"Add Includes": true,
"Add Prototypes": true,
"Add Stub Comments": false
},
"properties": {
"Show Test Stub Preview": {
"type": "boolean",
"default": true
},
"Test Source File": {
"type": "string",
"default": "QTESTSRC"
},
"Test Source Directory": {
"type": "string",
"default": "qtestsrc"
},
"Prompt For Test Name": {
"type": "boolean",
"default": false
},
"Generate Default Test Configuration": {
"type": "boolean",
"default": true
},
"Add Control Options and Directives": {
"type": "boolean",
"default": true
},
"Add Includes": {
"type": "boolean",
"default": true
},
"Add Prototypes": {
"type": "boolean",
"default": true
},
"Add Stub Comments": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false,
"markdownDescription": "Preferences for how test stubs should be generated:\n* `Show Test Stub Preview`: Controls whether to show a preview of the test stub before adding it to the file or source member. This refactoring preview can also be used to selectively insert portions of the stub.\n* `Test Source File`: The default source file to generate new test members into.\n* `Test Source Directory`: The default directory to generate new test files into.\n* `Prompt For Test Name`: Controls whether to prompt for the name of the test including where it is located. The default source file is set using the `Test Source File` preference, the default directory is set using the `Test Source Directory` preference, and the test file or member will be named according to the rules described [here](https://codefori.github.io/docs/developing/testing/writing/#test-suites).\n* `Generate Default Test Configuration`: Controls whether a default `testing.json` should be created alongside the generated test when no existing configuration is found.\n* `Add Control Options and Directives`: Controls whether to add control options (`ctl-opt nomain ccsidcvt(*excp) ccsid(*char : *jobrun);`) and directives (`**free`) for new test files or members.\n* `Add Includes`: Controls whether to generate relevant includes.\n* `Add Prototypes`: Controls whether to generate a prototype for the procedure being tested (if it does not already exist).\n* `Add Stub Comments`: Controls whether to add comments to the test stub to distinguish inputs, actual results, expected results, and assertions."
},
"IBM i Testing.libraryListValidation": {
"order": 3,
"type": "object",
"default": {
"RPGUNIT": true,
"QDEVTOOLS": true
},
"properties": {
"RPGUNIT": {
"type": "boolean",
"default": true
},
"QDEVTOOLS": {
"type": "boolean",
"default": true
}
},
"additionalProperties": false,
"markdownDescription": "Controls whether checks are performed to ensure the required library is found on the library list before executing any tests. If not found, a notification is displayed. For RPGUNIT, note that the specific library which is checked for can be configured using the `IBM i Testing.productLibrary` setting."
},
"IBM i Testing.runOrder": {
"order": 4,
"type": "string",
"default": "*API",
"enum": [
"*API",
"*REVERSE"
],
"enumDescriptions": [
"Run test procedures in the order provided by the system API.",
"Run test procedures in reverse order."
],
"markdownDescription": "Specifies the order for running the test procedures. Useful to check that there is no dependencies between test procedures."
},
"IBM i Testing.libraryList": {
"order": 5,
"type": "string",
"default": "*CURRENT",
"enum": [
"*CURRENT",
"*JOBD"
],
"enumDescriptions": [
"The current library list is used to execute the unit test suite.",
"The initial library list part of the specified job description is used to execute the unit test suite."
],
"markdownDescription": "Specifies the library list for executing the specified unit test."
},
"IBM i Testing.jobDescription": {
"order": 6,
"type": "string",
"default": "*DFT",
"markdownDescription": "Specifies the name of the job description that is used to set the library list, when the `IBM i Testing: Library List` setting is set to `*JOBD`. `*DFT` can be used here to indicate the library of the unit test suite (service program) is searched for job description `RPGUNIT`."
},
"IBM i Testing.reportDetail": {
"order": 7,
"type": "string",
"default": "*BASIC",
"enum": [
"*BASIC",
"*ALL"
],
"enumDescriptions": [
"Full detail for failures and errors, no detail for successes.",
"Full detail in all cases."
],
"markdownDescription": "Specifies how detailed the test run report should be."
},
"IBM i Testing.createReport": {
"order": 8,
"type": "string",
"default": "*ALLWAYS",
"enum": [
"*ALLWAYS",
"*ERROR",
"*NONE"
],
"enumDescriptions": [
"Creates a report regardless of the test result.",
"Creates a report in case of failures and errors, only.",
"Does not create any report."
],
"markdownDescription": "Specifies whether a report is created."
},
"IBM i Testing.reclaimResources": {
"order": 9,
"type": "string",
"default": "*NO",
"enum": [
"*NO",
"*ALWAYS",
"*ONCE"
],
"enumDescriptions": [
"Resources are not reclaimed.",
"Resources are reclaimed after each test case and at the end of the test suite.",
"Resources are reclaimed at the end of the test suite."
],
"markdownDescription": "Specifies when to reclaim resources. Resources, such as open files, can be reclaimed after each test case or at the end of the test suite. This option is useful if the test suite calls OPM programs, which do not set the `*INLR` indicator."
},
"IBM i Testing.onFailure": {
"order": 10,
"type": "string",
"default": "*ABORT",
"enum": [
"*ABORT",
"*CONTINUE"
],
"enumDescriptions": [
"Test case aborts execution after a failing assertion.",
"Test case continues execution after a failing assertion."
],
"markdownDescription": "Specifies test execution behavior after a failing assertion."
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run rpgunit && npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"rpgunit": "npx tsx tools/downloadRpgUnit",
"preinstall": "cd api && npm install && cd ..",
"postinstall": "npm run rpgunit"
},
"dependencies": {
"ansi-colors": "^4.1.3",
"compare-versions": "^6.1.1",
"node-fetch": "^3.3.2",
"tmp": "^0.2.5"
},
"devDependencies": {
"vscode-rpgle": "github:halcyon-tech/vscode-rpgle",
"@halcyontech/vscode-ibmi-types": "^3.0.7",
"@octokit/rest": "22.0.1",
"@types/node": "22.x",
"@types/tmp": "^0.2.6",
"@types/vscode": "^1.96.0",
"@typescript-eslint/eslint-plugin": "^8.59.3",
"@typescript-eslint/parser": "^8.59.3",
"eslint": "^10.4.0",
"fork-ts-checker-webpack-plugin": "^9.1.0",
"ts-loader": "^9.5.7",
"typescript": "^5.4.5",
"webpack": "^5.106.2",
"webpack-cli": "^7.0.2"
}
}