Skip to content

Commit

Permalink
updated the code to copy project
Browse files Browse the repository at this point in the history
  • Loading branch information
SuparnaSuresh committed Dec 4, 2024
1 parent 74be44b commit 647fd5f
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 178 deletions.
10 changes: 2 additions & 8 deletions src/test/GradleTestDevModeActionsPathWSInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,19 @@ import * as utils from './utils/testUtils';
describe('Open Gradle Project - Project name with space', () => {

let driver: WebDriver;

before(() => {

/**
* Create new gradle project name with space in the directory
* Create new gradle project name with space in the new directory
*/

utils.getRenamedProject();
utils.getProjectWithSpaceInDir(utils.getGradleProjectPath(), utils.getGradleProjectPathWithSpace());
driver = VSBrowser.instance.driver;

});

it('Open Sample Gradle Project - Project name with space', async () => {

await utils.delay(8000);
await VSBrowser.instance.openResources(utils.getGradleProjectPathWithSpace());

}).timeout(25000);

});


4 changes: 1 addition & 3 deletions src/test/GradleTestDevModeActionsPathWSTasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,10 @@ describe('Devmode action tests for Gradle Project- Project name with space', ()
const gradleProjectPath = path.join(__dirname, "..", "..", "src", "test", "resources", "gradle project");
console.log("Current path __dirname: " + __dirname);
console.log("Removing project from the path: " + gradleProjectPath);

/**
* Remove newly created project after test case execution
*/

utils.removeProjectFolder(gradleProjectPath);
utils.removeProjectFolderWithContent(gradleProjectPath);
});

});
Expand Down
13 changes: 4 additions & 9 deletions src/test/MavenTestDevModeActionsWSPathInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,18 @@ import * as utils from './utils/testUtils';
describe('Open Maven Project - path with space', () => {

let driver: WebDriver;

before(() => {

driver = VSBrowser.instance.driver;

/**
* Create new maven project with space in the directory
* Create new gradle project name with space in the new directory
*/

utils.createMvnProjectPathWithSpace();
utils.getProjectWithSpaceInDir(utils.getMvnProjectPath(), utils.getMvnProjectDirWithSpace());
driver = VSBrowser.instance.driver;

});

it('Open Sample Maven Project - path with space', async () => {

await utils.delay(8000);
await VSBrowser.instance.openResources(utils.getMvnProjectDirWithSpace());

}).timeout(15000);

});
6 changes: 5 additions & 1 deletion src/test/MavenTestDevModeActionsWSPathTasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ describe('Devmode action tests for Maven Project - path with space', () => {
const mavenProjectPath = path.join(__dirname, "..", "..", "src", "test", "resources", "maven project");
console.log("Current path __dirname" + mavenProjectPath);
console.log("Project path to remove" + mavenProjectPath);
utils.removeProjectFolder(mavenProjectPath);
/**
* Remove newly created project after test case execution
*/

utils.removeProjectFolderWithContent(mavenProjectPath);
console.log("Project removed from the path:" + mavenProjectPath);

});
Expand Down
Loading

0 comments on commit 647fd5f

Please sign in to comment.