Spec-Zone.ru › Playwright

FullConfig

Resolved configuration which is accessible via testInfo.config and is passed to the test reporters. To see the format of Playwright configuration file, please see TestConfig instead.

Properties​

argv​

Snapshot of process.argv captured in the runner process. Useful for reading custom command-line arguments — for example, args supplied after the -- separator (npx playwright test -- --build-path=./out). Playwright does not parse these; consumers are responsible for slicing and interpreting them with any argument-parsing library.

Usage

fullConfig.argv

Type

  • Array<string>

configFile​

Path to the configuration file used to run the tests. The value is an empty string if no config file was used.

Usage

fullConfig.configFile

Type

  • string

failOnFlakyTests​

See testConfig.failOnFlakyTests.

Usage

fullConfig.failOnFlakyTests

Type

  • boolean

forbidOnly​

See testConfig.forbidOnly.

Usage

fullConfig.forbidOnly

Type

  • boolean

fullyParallel​

See testConfig.fullyParallel.

Usage

fullConfig.fullyParallel

Type

  • boolean

globalSetup​

See testConfig.globalSetup.

Usage

fullConfig.globalSetup

Type

  • null | string

globalTeardown​

See testConfig.globalTeardown.

Usage

fullConfig.globalTeardown

Type

  • null | string

globalTimeout​

See testConfig.globalTimeout.

Usage

fullConfig.globalTimeout

Type

  • number

grep​

See testConfig.grep.

Usage

fullConfig.grep

Type

  • RegExp | Array<RegExp>

grepInvert​

See testConfig.grepInvert.

Usage

fullConfig.grepInvert

Type

  • null | RegExp | Array<RegExp>

maxFailures​

See testConfig.maxFailures.

Usage

fullConfig.maxFailures

Type

  • number

metadata​

See testConfig.metadata.

Usage

fullConfig.metadata

Type

  • Metadata

preserveOutput​

See testConfig.preserveOutput.

Usage

fullConfig.preserveOutput

Type

  • "always" | "never" | "failures-only"

projects​

List of resolved projects.

Usage

fullConfig.projects

Type

  • Array<FullProject>

quiet​

See testConfig.quiet.

Usage

fullConfig.quiet

Type

  • boolean

reportSlowTests​

See testConfig.reportSlowTests.

Usage

fullConfig.reportSlowTests

Type

  • null | Object
    • max number

      The maximum number of slow test files to report.

    • threshold number

      Test file duration in milliseconds that is considered slow.

reporter​

See testConfig.reporter.

Usage

fullConfig.reporter

Type

  • string | Array<Object> | "list" | "dot" | "line" | "github" | "json" | "junit" | "null" | "html" | "perfetto"
    • 0 string

      Reporter name or module or file path

    • 1 Object

      An object with reporter options if any

rootDir​

Base directory for all relative paths used in the reporters.

Usage

fullConfig.rootDir

Type

  • string

shard​

See testConfig.shard.

Usage

fullConfig.shard

Type

  • null | Object
    • total number

      The total number of shards.

    • current number

      The index of the shard to execute, one-based.

tags​

Resolved global tags. See testConfig.tag.

Usage

fullConfig.tags

Type

  • Array<string>

updateSnapshots​

See testConfig.updateSnapshots.

Usage

fullConfig.updateSnapshots

Type

  • "all" | "changed" | "missing" | "none"

updateSourceMethod​

See testConfig.updateSourceMethod.

Usage

fullConfig.updateSourceMethod

Type

  • "overwrite" | "3way" | "patch"

version​

Playwright version.

Usage

fullConfig.version

Type

  • string

webServer​

See testConfig.webServer.

Usage

fullConfig.webServer

Type

  • null | Object

workers​

See testConfig.workers.

Usage

fullConfig.workers

Type

  • number

© 2026 Microsoft
Licensed under the Apache License, Version 2.0.
https://playwright.dev/docs/api/class-fullconfig

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API