import type * as workerpool from 'workerpool'; import type { IntegBatchResponse, IntegTestOptions, IntegRunnerMetrics } from './common'; import type { EnvironmentSummary } from './environment-pool'; /** * Options for an integration test batch */ export interface IntegTestBatchRequest extends IntegTestOptions { /** * The AWS region to run this batch in */ readonly region: string; /** * The AWS profile to use when running this test */ readonly profile?: string; /** * In unit test mode, leave the synth output directories, don't clean them. * * Many of our tests use mocks and don't actually synth output directories, they are * static and must not be deleted. */ readonly testingUsingMocksLeaveDirectories?: boolean; } /** * Options for running all integration tests */ export interface IntegTestRunOptions extends IntegTestOptions { /** * The regions to run the integration tests across. * This allows the runner to run integration tests in parallel */ readonly regions: string[]; /** * List of AWS profiles. This will be used in conjunction with `regions` * to run tests in parallel across accounts + regions */ readonly profiles?: string[]; /** * The workerpool to use */ readonly pool: workerpool.WorkerPool; } /** * Run Integration tests. */ export declare function runIntegrationTests(options: IntegTestRunOptions): Promise<{ success: boolean; metrics: IntegRunnerMetrics[]; testEnvironments: EnvironmentSummary; }>; /** * Runs a set of integration tests in parallel across a list of AWS regions. * Only a single test can be run at a time in a given region. Once a region * is done running a test, the next test will be pulled from the queue * * When a test fails because its environment is not bootstrapped, the * environment is removed from the pool and the test is retried in the * remaining environments (in a follow-up round). If no environments remain, * the affected tests are reported as failed. */ export declare function runIntegrationTestsInParallel(options: IntegTestRunOptions): Promise; //# sourceMappingURL=integ-test-worker.d.ts.map