跳到正文
本页尚未翻译成中文,以下为英文原文。 查看英文版

FullConfig ​

Added in: v1.10

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 ​

fullConfig.argv ​

Added in: v1.61

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.

Type

  • Array<string>

fullConfig.configFile ​

Added in: v1.20

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

Type

  • string

fullConfig.failOnFlakyTests ​

Added in: v1.61

See testConfig.failOnFlakyTests.

Type

  • boolean

fullConfig.filteredProjects ​

Added in: v1.64

List of projects that were selected to run, after applying the --project command line filter. When no filter is specified, this is the same as fullConfig.projects.

Type

  • Array<FullProject>

fullConfig.forbidOnly ​

Added in: v1.10

See testConfig.forbidOnly.

Type

  • boolean

fullConfig.fullyParallel ​

Added in: v1.20

See testConfig.fullyParallel.

Type

  • boolean

fullConfig.globalSetup ​

Added in: v1.10

See testConfig.globalSetup.

Type

  • null | string

fullConfig.globalTeardown ​

Added in: v1.10

See testConfig.globalTeardown.

Type

  • null | string

fullConfig.globalTimeout ​

Added in: v1.10

See testConfig.globalTimeout.

Type

  • int

fullConfig.grep ​

Added in: v1.10

See testConfig.grep.

Type

  • RegExp | Array<RegExp>

fullConfig.grepInvert ​

Added in: v1.10

See testConfig.grepInvert.

Type

  • null | RegExp | Array<RegExp>

fullConfig.maxFailures ​

Added in: v1.10

See testConfig.maxFailures.

Type

  • int

fullConfig.metadata ​

Added in: v1.10

See testConfig.metadata.

Type

  • Metadata

fullConfig.preserveOutput ​

Added in: v1.10

See testConfig.preserveOutput.

Type

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

fullConfig.projects ​

Added in: v1.10

List of resolved projects.

Type

  • Array<FullProject>

fullConfig.quiet ​

Added in: v1.10

See testConfig.quiet.

Type

  • boolean

fullConfig.reporter ​

Added in: v1.10

See testConfig.reporter.

Type

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

fullConfig.reportSlowTests ​

Added in: v1.10

See testConfig.reportSlowTests.

Type

  • null | Object

fullConfig.rootDir ​

Added in: v1.20

Base directory for all relative paths used in the reporters.

Type

  • string

fullConfig.shard ​

Added in: v1.10

See testConfig.shard.

Type

  • null | Object

fullConfig.tags ​

Added in: v1.57

Resolved global tags. See testConfig.tag.

Type

  • Array<string>

fullConfig.updateSnapshots ​

Added in: v1.10

See testConfig.updateSnapshots.

Type

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

fullConfig.updateSourceMethod ​

Added in: v1.50

See testConfig.updateSourceMethod.

Type

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

fullConfig.version ​

Added in: v1.20

Playwright version.

Type

  • string

fullConfig.webServer ​

Added in: v1.10

See testConfig.webServer. This property is null in merged reports because server configuration is not serialized.

Type

  • null | Object

fullConfig.workers ​

Added in: v1.10

See testConfig.workers.

Type

  • int

基于 Apache 2.0 许可证发布。