Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ import { getExtraKbnOpts, runKibanaServer } from './run_kibana_server';
import { StartServerOptions } from './flags';
import { loadServersConfig } from '../config';
import { silence } from '../common';
import { getPlaywrightGrepTag } from '../playwright/utils';

export async function startServers(log: ToolingLog, options: StartServerOptions) {
const runStartTime = Date.now();
const reportTime = getTimeReporter(log, 'scripts/scout_start_servers');

await withProcRunner(log, async (procs) => {
const config = await loadServersConfig(options.mode, log);
const pwGrepTag = getPlaywrightGrepTag(options.mode);

const shutdownEs = await runElasticsearch({
config,
Expand Down Expand Up @@ -52,7 +54,7 @@ export async function startServers(log: ToolingLog, options: StartServerOptions)
'\n\n' +
dedent`
Elasticsearch and Kibana are ready for functional testing.
Use 'npx playwright test --config <path_to_Playwright.config.ts> --project local' to run tests'
Use 'npx playwright test --project local --grep ${pwGrepTag} --config <path_to_Playwright.config.ts>' to run tests'
` +
'\n\n'
);
Expand Down