FullConfig
Added in: v1.10Resolved 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.61Snapshot 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.20Path 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.61See testConfig.failOnFlakyTests.
Type
boolean
fullConfig.filteredProjects
Added in: v1.64List 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.10Type
boolean
fullConfig.fullyParallel
Added in: v1.20Type
boolean
fullConfig.globalSetup
Added in: v1.10Type
null | string
fullConfig.globalTeardown
Added in: v1.10See testConfig.globalTeardown.
Type
null | string
fullConfig.globalTimeout
Added in: v1.10Type
int
fullConfig.grep
Added in: v1.10See testConfig.grep.
Type
RegExp | Array<RegExp>
fullConfig.grepInvert
Added in: v1.10Type
null | RegExp | Array<RegExp>
fullConfig.maxFailures
Added in: v1.10Type
int
fullConfig.metadata
Added in: v1.10See testConfig.metadata.
Type
Metadata
fullConfig.preserveOutput
Added in: v1.10See testConfig.preserveOutput.
Type
"always" | "never" | "failures-only"
fullConfig.projects
Added in: v1.10List of resolved projects.
Type
Array<FullProject>
fullConfig.quiet
Added in: v1.10See testConfig.quiet.
Type
boolean
fullConfig.reporter
Added in: v1.10See testConfig.reporter.
Type
string | Array<Object> | "list" | "dot" | "failures" | "line" | "github" | "json" | "junit" | "null" | "html" | "blob" | "perfetto"
fullConfig.reportSlowTests
Added in: v1.10See testConfig.reportSlowTests.
Type
null | Object
fullConfig.rootDir
Added in: v1.20Base directory for all relative paths used in the reporters.
Type
string
fullConfig.shard
Added in: v1.10See testConfig.shard.
Type
null | Object
fullConfig.tags
Added in: v1.57Resolved global tags. See testConfig.tag.
Type
Array<string>
fullConfig.updateSnapshots
Added in: v1.10See testConfig.updateSnapshots.
Type
"all" | "changed" | "missing" | "none" | "default"
fullConfig.updateSourceMethod
Added in: v1.50See testConfig.updateSourceMethod.
Type
"overwrite" | "3way" | "patch"
fullConfig.version
Added in: v1.20Playwright version.
Type
string
fullConfig.webServer
Added in: v1.10See testConfig.webServer. This property is null in merged reports because server configuration is not serialized.
Type
null | Object
fullConfig.workers
Added in: v1.10See testConfig.workers.
Type
int