Skip to content

Commit 4ea5765

Browse files
Customizing unit tests in the VS Code extension
1 parent 9416176 commit 4ea5765

File tree

3 files changed

+948
-33
lines changed

3 files changed

+948
-33
lines changed

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,14 +1674,14 @@
16741674
"default": true
16751675
},
16761676
"objectscript.unitTest.relativeTestRoots": {
1677-
"description": "Paths to where client-side test classes are stored. Relative to the workspace folder root.",
1677+
"description": "Paths to where client-side test classes are stored. Relative to the workspace folder root. Use '*' as a wildcard within a segment to match multiple folders.",
16781678
"type": "array",
16791679
"default": [],
16801680
"scope": "resource",
16811681
"items": {
16821682
"type": "string",
1683-
"pattern": "^([\\p{L}\\d_. -]+([\\/\\\\][\\p{L}\\d_. -]+)*)?$",
1684-
"patternErrorMessage": "Each folder name can only contain letters, digits, space, hyphen ('-'), period ('.'), or underscore ('_'), and the full path must neither begin nor end with a slash."
1683+
"pattern": "^([-\\p{L}\\d_. *]+([\\/\\\\][-\\p{L}\\d_. *]+)*)?$",
1684+
"patternErrorMessage": "Each folder name can only contain letters, digits, space, hyphen ('-'), period ('.'), underscore ('_'), or an asterisk ('*') wildcard, and the full path must neither begin nor end with a slash."
16851685
}
16861686
},
16871687
"objectscript.unitTest.autoload.folder": {
@@ -1710,6 +1710,13 @@
17101710
"default": true,
17111711
"scope": "resource"
17121712
},
1713+
"objectscript.unitTest.legacyRequestTimeout": {
1714+
"description": "Timeout in milliseconds applied to legacy unit test API calls. Set to 0 for no timeout.",
1715+
"type": "integer",
1716+
"default": 6000000,
1717+
"minimum": 0,
1718+
"scope": "resource"
1719+
},
17131720
"objectscript.commentToken": {
17141721
"description": "The line comment characters for ObjectScript in classes and MAC and INC routines.",
17151722
"type": "string",

src/ccs/sourcecontrol/routes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const ROUTES = {
55
getGlobalDocumentation: () => `/getGlobalDocumentation`,
66
resolveDefinition: (namespace: string) => `/namespaces/${encodeURIComponent(namespace)}/resolveDefinition`,
77
createItem: (namespace: string) => `/namespaces/${encodeURIComponent(namespace)}/createItem`,
8+
runUnitTests: (namespace: string) => `/namespaces/${encodeURIComponent(namespace)}/unitTests/runUnitTests`,
89
} as const;
910

1011
export type RouteKey = keyof typeof ROUTES;

0 commit comments

Comments
 (0)