Skip to content

FullConfig

Source URL: https://playwright.dev/docs/api/class-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.


Added in: v1.20 fullConfig.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


Added in: v1.10 fullConfig.forbidOnly

See testConfig.forbidOnly.

Usage

fullConfig.forbidOnly

Type


Added in: v1.20 fullConfig.fullyParallel

See testConfig.fullyParallel.

Usage

fullConfig.fullyParallel

Type


Added in: v1.10 fullConfig.globalSetup

See testConfig.globalSetup.

Usage

fullConfig.globalSetup

Type


Added in: v1.10 fullConfig.globalTeardown

See testConfig.globalTeardown.

Usage

fullConfig.globalTeardown

Type


Added in: v1.10 fullConfig.globalTimeout

See testConfig.globalTimeout.

Usage

fullConfig.globalTimeout

Type


Added in: v1.10 fullConfig.grep

See testConfig.grep.

Usage

fullConfig.grep

Type


Added in: v1.10 fullConfig.grepInvert

See testConfig.grepInvert.

Usage

fullConfig.grepInvert

Type


Added in: v1.10 fullConfig.maxFailures

See testConfig.maxFailures.

Usage

fullConfig.maxFailures

Type


Added in: v1.10 fullConfig.metadata

See testConfig.metadata.

Usage

fullConfig.metadata

Type


Added in: v1.10 fullConfig.preserveOutput

See testConfig.preserveOutput.

Usage

fullConfig.preserveOutput

Type

  • “always” | “never” | “failures-only”

Added in: v1.10 fullConfig.projects

List of resolved projects.

Usage

fullConfig.projects

Type


Added in: v1.10 fullConfig.quiet

See testConfig.quiet.

Usage

fullConfig.quiet

Type


Added in: v1.10 fullConfig.reportSlowTests

See testConfig.reportSlowTests.

Usage

fullConfig.reportSlowTests

Type

The maximum number of slow test files to report.

* `threshold` [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type "Number")

Test file duration in milliseconds that is considered slow.


Added in: v1.10 fullConfig.reporter

See testConfig.reporter.

Usage

fullConfig.reporter

Type

  • string | Array<Object> | “list” | “dot” | “line” | “github” | “json” | “junit” | “null” | “html”

Reporter name or module or file path

* `1` [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object "Object")

An object with reporter options if any


Added in: v1.20 fullConfig.rootDir

Base directory for all relative paths used in the reporters.

Usage

fullConfig.rootDir

Type


Added in: v1.10 fullConfig.shard

See testConfig.shard.

Usage

fullConfig.shard

Type

The total number of shards.

* `current` [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type "Number")

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


Added in: v1.57 fullConfig.tags

Resolved global tags. See testConfig.tag.

Usage

fullConfig.tags

Type


Added in: v1.10 fullConfig.updateSnapshots

See testConfig.updateSnapshots.

Usage

fullConfig.updateSnapshots

Type

  • “all” | “changed” | “missing” | “none”

Added in: v1.50 fullConfig.updateSourceMethod

See testConfig.updateSourceMethod.

Usage

fullConfig.updateSourceMethod

Type

  • “overwrite” | “3way” | “patch”

Added in: v1.20 fullConfig.version

Playwright version.

Usage

fullConfig.version

Type


Added in: v1.10 fullConfig.webServer

See testConfig.webServer.

Usage

fullConfig.webServer

Type


Added in: v1.10 fullConfig.workers

See testConfig.workers.

Usage

fullConfig.workers

Type