Skip to content

Commit

Permalink
Deleted not required cleanup in tests at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
Den1552 committed Jan 15, 2025
1 parent 710a8fe commit 15db2be
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 72 deletions.
6 changes: 0 additions & 6 deletions tests/internal/e2e/test/specs/vcast.rest_3.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
getTestHandle,
deleteTest,
updateTestID,
cleanup,
assertTestsDeleted,
} from "../test_utils/vcast_utils";
import { TIMEOUT } from "../test_utils/vcast_utils";
Expand Down Expand Up @@ -280,9 +279,4 @@ describe("vTypeCheck VS Code Extension", () => {
console.log(stdout);
}
});

it("should clean up", async () => {
await updateTestID();
await cleanup();
});
});
1 change: 0 additions & 1 deletion tests/internal/e2e/test/specs/vcast_coded_tests.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
getTestHandle,
findSubprogramMethod,
updateTestID,
cleanup,
checkForLogsInTestResults,
checkElementExistsInHTML,
} from "../test_utils/vcast_utils";
Expand Down
12 changes: 1 addition & 11 deletions tests/internal/e2e/test/specs/vcast_testdel_env_atg.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ import {
type Workbench,
} from "wdio-vscode-service";
import { Key } from "webdriverio";
import {
updateTestID,
deleteAllTestsForEnv,
validateTestDeletionForFunction,
cleanup,
} from "../test_utils/vcast_utils";
import { updateTestID, deleteAllTestsForEnv } from "../test_utils/vcast_utils";
import { TIMEOUT } from "../test_utils/vcast_utils";

describe("vTypeCheck VS Code Extension", () => {
Expand Down Expand Up @@ -90,9 +85,4 @@ describe("vTypeCheck VS Code Extension", () => {
`Validating deletion of all ATG tests for the environment ${envName}`
);
});

it("should clean up", async () => {
await updateTestID();
await cleanup();
});
});
12 changes: 1 addition & 11 deletions tests/internal/e2e/test/specs/vcast_testdel_env_basis.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ import {
type Workbench,
} from "wdio-vscode-service";
import { Key } from "webdriverio";
import {
updateTestID,
deleteAllTestsForEnv,
validateTestDeletionForFunction,
cleanup,
} from "../test_utils/vcast_utils";
import { updateTestID, deleteAllTestsForEnv } from "../test_utils/vcast_utils";
import { TIMEOUT } from "../test_utils/vcast_utils";

describe("vTypeCheck VS Code Extension", () => {
Expand Down Expand Up @@ -87,9 +82,4 @@ describe("vTypeCheck VS Code Extension", () => {
console.log(`Deleting all BASIS PATH tests for the environment ${envName}`);
await deleteAllTestsForEnv(envName);
});

it("should clean up", async () => {
await updateTestID();
await cleanup();
});
});
7 changes: 0 additions & 7 deletions tests/internal/e2e/test/specs/vcast_testdel_func_atg.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import {
updateTestID,
testGenMethod,
deleteAllTestsForFunction,
validateTestDeletionForFunction,
cleanup,
} from "../test_utils/vcast_utils";
import { TIMEOUT } from "../test_utils/vcast_utils";

Expand Down Expand Up @@ -84,9 +82,4 @@ describe("vTypeCheck VS Code Extension", () => {
testGenMethod.ATG
);
});

it("should clean up", async () => {
await updateTestID();
await cleanup();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
testGenMethod,
deleteAllTestsForFunction,
assertTestsDeleted,
cleanup,
} from "../test_utils/vcast_utils";
import { TIMEOUT } from "../test_utils/vcast_utils";

Expand Down Expand Up @@ -113,9 +112,4 @@ describe("vTypeCheck VS Code Extension", () => {
await browser.takeScreenshot();
await browser.saveScreenshot("info_deleted_func_basis_tests.png");
});

it("should clean up", async () => {
await updateTestID();
await cleanup();
});
});
7 changes: 0 additions & 7 deletions tests/internal/e2e/test/specs/vcast_testdel_unit_atg.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import {
updateTestID,
testGenMethod,
deleteAllTestsForUnit,
validateTestDeletionForFunction,
cleanup,
} from "../test_utils/vcast_utils";
import { TIMEOUT } from "../test_utils/vcast_utils";

Expand Down Expand Up @@ -81,9 +79,4 @@ describe("vTypeCheck VS Code Extension", () => {
console.log("Deleting all ATG tests for unit database");
await deleteAllTestsForUnit("database", testGenMethod.ATG);
});

it("should clean up", async () => {
await updateTestID();
await cleanup();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import {
updateTestID,
testGenMethod,
deleteAllTestsForUnit,
validateTestDeletionForFunction,
cleanup,
} from "../test_utils/vcast_utils";
import { TIMEOUT } from "../test_utils/vcast_utils";

Expand Down Expand Up @@ -81,9 +79,4 @@ describe("vTypeCheck VS Code Extension", () => {
await deleteAllTestsForUnit("database", testGenMethod.BasisPath);
console.log("Validating deletion of BASIS PATH tests for unit database");
});

it("should clean up", async () => {
await updateTestID();
await cleanup();
});
});
6 changes: 0 additions & 6 deletions tests/internal/e2e/test/specs/vcast_testgen_bugs_2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
validateGeneratedTestsForFunction,
deleteAllTestsForFunction,
validateTestDeletionForFunction,
cleanup,
} from "../test_utils/vcast_utils";
import { TIMEOUT } from "../test_utils/vcast_utils";

Expand Down Expand Up @@ -153,9 +152,4 @@ describe("vTypeCheck VS Code Extension", () => {
console.log("Skipping ATG tests");
}
});

it("should clean up", async () => {
await updateTestID();
await cleanup();
});
});
3 changes: 0 additions & 3 deletions tests/internal/e2e/test/specs/vcast_testgen_env_atg.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ import {
expandWorkspaceFolderSectionInExplorer,
updateTestID,
testGenMethod,
deleteAllTestsForEnv,
validateTestDeletionForFunction,
generateAndValidateAllTestsFor,
cleanup,
} from "../test_utils/vcast_utils";
import { TIMEOUT } from "../test_utils/vcast_utils";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import {
generateFlaskIconTestsFor,
validateGeneratedTest,
deleteGeneratedTest,
validateSingleTestDeletion,
cleanup,
} from "../test_utils/vcast_utils";
import { TIMEOUT } from "../test_utils/vcast_utils";

Expand Down Expand Up @@ -235,9 +233,4 @@ describe("vTypeCheck VS Code Extension", () => {
);
}
});

it("should clean up", async () => {
await updateTestID();
await cleanup();
});
});

0 comments on commit 15db2be

Please sign in to comment.