Skip to content

Commit

Permalink
run all tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
pospisilf committed Mar 5, 2024
1 parent 4c6f4bf commit 748261e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/ui-test/tests/codelens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,29 @@ describe('JBang commands execution through command codelens', function () {
});

it(`Execute command 'apache.camel.run.jbang' with codelens '${variables.CAMEL_RUN_CODELENS}'`, async function () {
var startTime = performance.now()
await (await findCodelens(variables.CAMEL_RUN_CODELENS)).click();
var startTime = performance.now();
await waitUntilTerminalHasText(driver, variables.TEST_ARRAY_RUN, 4000, 240000);
var endTime = performance.now()
console.log(`Call to function took ${endTime - startTime} milliseconds`)
var endTime = performance.now();
console.log(`Call to function took ${endTime - startTime} milliseconds`);
});

it(`Execute command 'apache.camel.debug.jbang' with codelens '${variables.CAMEL_DEBUG_CODELENS}'`, async function () {
if (isCamelVersionProductized(process.env.CAMEL_VERSION)){
this.skip();
}

var startTime = performance.now()

await (await findCodelens(variables.CAMEL_DEBUG_CODELENS)).click();

var startTime = performance.now();
await waitUntilTerminalHasText(driver, variables.TEST_ARRAY_RUN_DEBUG, 4000, 120000);
var endTime = performance.now();
console.log(`Call to function took ${endTime - startTime} milliseconds`);

await disconnectDebugger(driver);
await (await new ActivityBar().getViewControl('Run and Debug')).closeView();

var endTime = performance.now()
console.log(`Call to function took ${endTime - startTime} milliseconds`)

});
});

0 comments on commit 748261e

Please sign in to comment.