diff --git a/.github/workflows/run-regression-tests.yml b/.github/workflows/run-regression-tests.yml index a3b45fe2..980e33c1 100755 --- a/.github/workflows/run-regression-tests.yml +++ b/.github/workflows/run-regression-tests.yml @@ -8,26 +8,25 @@ on: jobs: build: + name: Build Plugin + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - runtime: [ linux, mac ] - # Removing windows as a standard run flavor runtime: [ linux, mac, windows ] + # As Vscode 1.79 and 1.78 are the only support version for current release, running test with only latest,previous + #Enable it in future for multiple releases as applicable targetVSCode: [ previousMinusOne, previous, latest ] targetVSCode: [previous, latest ] - # As Vscode 1.79 and 1.78 are the only support version for current release, running test with only latest,previous - #Enable it in future for multiple releases as applicable targetVSCode: [ previousMinusOne, previous, latest ] + runtime: [ linux, mac, windows ] include: - - runtime: linux - os: ubuntu-latest - - - runtime: mac - os: macOS-13 - - # - runtime: windows - # os: windows-latest - - name: Build Plugin - runs-on: ${{ matrix.os }} + - runtime: linux + os: ubuntu-latest + reportName: linux-test-report + - runtime: mac + os: macOS-latest + reportName: mac-test-report + - runtime: windows + os: windows-latest + reportName: windows-test-report steps: # Checkout the eclipse plugin repository. diff --git a/package-lock.json b/package-lock.json index 500a46a2..3cac5f32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,8 +37,8 @@ "gulp-download2": "^1.1.0", "mocha": "^9.2.2", "ts-loader": "^9.3.1", - "typescript": "^4.8.4", - "vscode-extension-tester": "^7.3.0", + "typescript": "^5.7.2", + "vscode-extension-tester": "^8.10.0", "vscode-test": "^1.3.0", "webpack": "^5.96.1", "webpack-cli": "^4.10.0" @@ -13921,4 +13921,4 @@ "dev": true } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index ba0ab602..66a33ce3 100644 --- a/package.json +++ b/package.json @@ -257,8 +257,8 @@ "gulp-download2": "^1.1.0", "mocha": "^9.2.2", "ts-loader": "^9.3.1", - "typescript": "^4.8.4", - "vscode-extension-tester": "^7.3.0", + "typescript": "^5.7.2", + "vscode-extension-tester": "^8.10.0", "vscode-test": "^1.3.0", "webpack": "^5.96.1", "webpack-cli": "^4.10.0", diff --git a/src/test/GradleTestDevModeActions.ts b/src/test/GradleTestDevModeActions.ts index 84599729..f55cf462 100755 --- a/src/test/GradleTestDevModeActions.ts +++ b/src/test/GradleTestDevModeActions.ts @@ -107,7 +107,10 @@ it('start gradle with docker from liberty dashboard', async () => { }).timeout(350000); it('Run tests for gradle project', async () => { - + + /* Adding delay before executing command in the terminal, to ensure + the directory path loads completely in macOS terminal before the command is printed.*/ + await utils.delay(30000); await utils.launchDashboardAction(item, constants.START_DASHBOARD_ACTION, constants.START_DASHBOARD_MAC_ACTION); await utils.delay(30000); const serverStartStatus = await utils.checkTerminalforServerState(constants.SERVER_START_STRING); @@ -135,13 +138,16 @@ it('Run tests for gradle project', async () => { it('start gradle with options from liberty dashboard', async () => { - const reportPath = path.join(utils.getGradleProjectPath(),"build", "reports", "tests", "test", "index.html"); const deleteReport = await utils.deleteReports(reportPath); + await utils.delay(30000); expect (deleteReport).to.be.true; + /* Adding delay before executing command in the terminal, to ensure + the directory path loads completely in macOS terminal before the command is printed.*/ + await utils.delay(30000); await utils.launchDashboardAction(item, constants.START_DASHBOARD_ACTION_WITH_PARAM, constants.START_DASHBOARD_MAC_ACTION_WITH_PARAM); await utils.setCustomParameter("--hotTests"); - await utils.delay(30000); + await utils.delay(100000); const serverStartStatus = await utils.checkTerminalforServerState(constants.SERVER_START_STRING); if(!serverStartStatus) console.log("Server started with params message not found in terminal "); @@ -164,7 +170,9 @@ it('start gradle with options from liberty dashboard', async () => { }).timeout(550000); it('start gradle with history from liberty dashboard', async () => { - + /* Adding delay before executing command in the terminal, to ensure + the directory path loads completely in macOS terminal before the command is printed.*/ + await utils.delay(30000); const reportPath = path.join(utils.getGradleProjectPath(),"build", "reports", "tests", "test", "index.html"); const deleteReport = await utils.deleteReports(reportPath); expect (deleteReport).to.be.true; @@ -172,7 +180,7 @@ it('start gradle with history from liberty dashboard', async () => { const foundCommand = await utils.chooseCmdFromHistory("--hotTests"); console.log("foundcmd:" + foundCommand); expect (foundCommand).to.be.true; - await utils.delay(30000); + await utils.delay(100000); const serverStartStatus = await utils.checkTerminalforServerState(constants.SERVER_START_STRING); if(!serverStartStatus) console.log("Server started with params message not found in the terminal "); diff --git a/tsconfig.json b/tsconfig.json index c9e437eb..a6b9ea39 100755 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,8 @@ ], "sourceMap": true, "rootDir": "src", - "strict": true /* enable all strict type-checking options */ + "strict": true, /* enable all strict type-checking options */ + "skipLibCheck": true /* ignoring type checking for third-party libraries */ /* Additional Checks */ // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */