Skip to content

Commit

Permalink
test only
Browse files Browse the repository at this point in the history
  • Loading branch information
pospisilf committed Mar 5, 2024
1 parent ccf7c1b commit 442b573
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/ui-test/tests/codelens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ import {
killTerminal,
waitUntilTerminalHasText
} from '../utils';
import { performance } from 'perf_hooks';

describe('JBang commands execution through command codelens', function () {
this.timeout(240000);
this.timeout(600000);

let driver: WebDriver;

Expand Down Expand Up @@ -70,17 +71,28 @@ describe('JBang commands execution through command codelens', function () {

it(`Execute command 'apache.camel.run.jbang' with codelens '${variables.CAMEL_RUN_CODELENS}'`, async function () {
await (await findCodelens(variables.CAMEL_RUN_CODELENS)).click();
await waitUntilTerminalHasText(driver, variables.TEST_ARRAY_RUN, 4000, 120000);
var startTime = performance.now();
await waitUntilTerminalHasText(driver, variables.TEST_ARRAY_RUN, 4000, 360000);
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();
}


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();


});
});

0 comments on commit 442b573

Please sign in to comment.