Skip to content

Commit 0189991

Browse files
Merge pull request #59 from gjsjohnmurray:fix-58
Server-side mode: exclude mapped TestCase classes (fix #58)
2 parents e0b51da + f829118 commit 0189991

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/serverTests.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ async function resolveItemChildren(item?: OurTestItem) {
1414
const namespace = parts[2];
1515
if (spec) {
1616
if (parts.length === 3) {
17-
// Find all TestCase classes
17+
// Find all TestCase classes in this namespace (not mapped in from elsewhere)
18+
const includeMapped = 0;
1819
const response = await makeRESTRequest(
1920
"POST",
2021
spec,
2122
{ apiVersion: 1, namespace, path: "/action/query" },
22-
{ query: `CALL %Dictionary.ClassDefinition_SubclassOf('%UnitTest.TestCase', '${(namespace === "%SYS" ? "" : "@")}')` },
23+
{ query: `SELECT tc.Name FROM %Dictionary.ClassDefinition_SubclassOf('%UnitTest.TestCase') tc, %Library.RoutineMgr_StudioOpenDialog('*.CLS',1,1,1,1,0,0,,0,${includeMapped}) sod WHERE CONCAT(tc.Name, '.cls') = sod.Name`},
2324
);
2425
if (response) {
2526
for await (const element of response?.data?.result?.content) {

0 commit comments

Comments
 (0)