FullConfig
Source URL: https://playwright.dev/docs/api/class-fullconfig
FullConfig | Playwright
Section titled “FullConfig | Playwright”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
Section titled “Properties”configFile
Section titled “configFile”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.configFileType
forbidOnly
Section titled “forbidOnly”Added in: v1.10 fullConfig.forbidOnly
Usage
fullConfig.forbidOnlyType
fullyParallel
Section titled “fullyParallel”Added in: v1.20 fullConfig.fullyParallel
Usage
fullConfig.fullyParallelType
globalSetup
Section titled “globalSetup”Added in: v1.10 fullConfig.globalSetup
Usage
fullConfig.globalSetupType
globalTeardown
Section titled “globalTeardown”Added in: v1.10 fullConfig.globalTeardown
See testConfig.globalTeardown.
Usage
fullConfig.globalTeardownType
globalTimeout
Section titled “globalTimeout”Added in: v1.10 fullConfig.globalTimeout
Usage
fullConfig.globalTimeoutType
Added in: v1.10 fullConfig.grep
See testConfig.grep.
Usage
fullConfig.grepType
grepInvert
Section titled “grepInvert”Added in: v1.10 fullConfig.grepInvert
Usage
fullConfig.grepInvertType
maxFailures
Section titled “maxFailures”Added in: v1.10 fullConfig.maxFailures
Usage
fullConfig.maxFailuresType
metadata
Section titled “metadata”Added in: v1.10 fullConfig.metadata
See testConfig.metadata.
Usage
fullConfig.metadataType
preserveOutput
Section titled “preserveOutput”Added in: v1.10 fullConfig.preserveOutput
See testConfig.preserveOutput.
Usage
fullConfig.preserveOutputType
- “always” | “never” | “failures-only”
projects
Section titled “projects”Added in: v1.10 fullConfig.projects
List of resolved projects.
Usage
fullConfig.projectsType
Added in: v1.10 fullConfig.quiet
See testConfig.quiet.
Usage
fullConfig.quietType
reportSlowTests
Section titled “reportSlowTests”Added in: v1.10 fullConfig.reportSlowTests
See testConfig.reportSlowTests.
Usage
fullConfig.reportSlowTestsType
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.
reporter
Section titled “reporter”Added in: v1.10 fullConfig.reporter
See testConfig.reporter.
Usage
fullConfig.reporterType
- string | Array<Object> | “list” | “dot” | “line” | “github” | “json” | “junit” | “null” | “html”
0string
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
rootDir
Section titled “rootDir”Added in: v1.20 fullConfig.rootDir
Base directory for all relative paths used in the reporters.
Usage
fullConfig.rootDirType
Added in: v1.10 fullConfig.shard
See testConfig.shard.
Usage
fullConfig.shardType
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.tagsType
updateSnapshots
Section titled “updateSnapshots”Added in: v1.10 fullConfig.updateSnapshots
See testConfig.updateSnapshots.
Usage
fullConfig.updateSnapshotsType
- “all” | “changed” | “missing” | “none”
updateSourceMethod
Section titled “updateSourceMethod”Added in: v1.50 fullConfig.updateSourceMethod
See testConfig.updateSourceMethod.
Usage
fullConfig.updateSourceMethodType
- “overwrite” | “3way” | “patch”
version
Section titled “version”Added in: v1.20 fullConfig.version
Playwright version.
Usage
fullConfig.versionType
webServer
Section titled “webServer”Added in: v1.10 fullConfig.webServer
See testConfig.webServer.
Usage
fullConfig.webServerType
workers
Section titled “workers”Added in: v1.10 fullConfig.workers
See testConfig.workers.
Usage
fullConfig.workersType