Interface FullProject<TestArgs, WorkerArgs>

Runtime representation of the test project configuration. It is accessible in the tests via testInfo.project and workerInfo.project and is passed to the test reporters. To see the format of the project in the Playwright configuration file please see TestProject instead.

interface FullProject<TestArgs, WorkerArgs> {
    dependencies: string[];
    grep: RegExp | RegExp[];
    grepInvert: RegExp | RegExp[];
    ignoreSnapshots: boolean;
    metadata: Metadata;
    name: string;
    outputDir: string;
    repeatEach: number;
    retries: number;
    snapshotDir: string;
    teardown?: string;
    testDir: string;
    testIgnore: string | RegExp | (string | RegExp)[];
    testMatch: string | RegExp | (string | RegExp)[];
    timeout: number;
    use: UseOptions<PlaywrightTestOptions & TestArgs, PlaywrightWorkerOptions & WorkerArgs>;
}

Type Parameters

  • TestArgs = {}
  • WorkerArgs = {}

Properties

dependencies: string[]
grep: RegExp | RegExp[]
grepInvert: RegExp | RegExp[]
ignoreSnapshots: boolean
metadata: Metadata
name: string
outputDir: string
repeatEach: number
retries: number
snapshotDir: string
teardown?: string
testDir: string
testIgnore: string | RegExp | (string | RegExp)[]
testMatch: string | RegExp | (string | RegExp)[]
timeout: number