メインコンテンツへスキップ

FullConfig

testInfo.config からアクセスでき、テストレポーターに渡される解決済みの設定。Playwright 設定ファイルの形式については、代わりに TestConfig を参照してください。


プロパティ

configFile

追加されたバージョン: v1.20 fullConfig.configFile

テストの実行に使用された設定ファイルへのパス。設定ファイルが使用されなかった場合、値は空文字列です。

使用法

fullConfig.configFile


forbidOnly

追加されたバージョン: v1.10 fullConfig.forbidOnly

testConfig.forbidOnly を参照。

使用法

fullConfig.forbidOnly


fullyParallel

追加されたバージョン: v1.20 fullConfig.fullyParallel

testConfig.fullyParallel を参照。

使用法

fullConfig.fullyParallel


globalSetup

追加されたバージョン: v1.10 fullConfig.globalSetup

testConfig.globalSetup を参照。

使用法

fullConfig.globalSetup


globalTeardown

追加されたバージョン: v1.10 fullConfig.globalTeardown

testConfig.globalTeardown を参照。

使用法

fullConfig.globalTeardown


globalTimeout

追加されたバージョン: v1.10 fullConfig.globalTimeout

testConfig.globalTimeout を参照。

使用法

fullConfig.globalTimeout


grep

追加されたバージョン: v1.10 fullConfig.grep

testConfig.grep を参照。

使用法

fullConfig.grep


grepInvert

追加されたバージョン: v1.10 fullConfig.grepInvert

testConfig.grepInvert を参照。

使用法

fullConfig.grepInvert


maxFailures

追加されたバージョン: v1.10 fullConfig.maxFailures

testConfig.maxFailures を参照。

使用法

fullConfig.maxFailures


metadata

追加されたバージョン: v1.10 fullConfig.metadata

testConfig.metadata を参照。

使用法

fullConfig.metadata


preserveOutput

追加されたバージョン: v1.10 fullConfig.preserveOutput

testConfig.preserveOutput を参照。

使用法

fullConfig.preserveOutput

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

projects

追加されたバージョン: v1.10 fullConfig.projects

解決されたプロジェクトのリスト。

使用法

fullConfig.projects


quiet

追加されたバージョン: v1.10 fullConfig.quiet

testConfig.quiet を参照。

使用法

fullConfig.quiet


reportSlowTests

追加されたバージョン: v1.10 fullConfig.reportSlowTests

testConfig.reportSlowTests を参照。

使用法

fullConfig.reportSlowTests

  • null | Object
    • max number

      報告する遅いテストファイルの最大数。

    • threshold number

      遅いと見なされるテストファイルの実行時間(ミリ秒単位)。


reporter

追加されたバージョン: v1.10 fullConfig.reporter

testConfig.reporter を参照。

使用法

fullConfig.reporter

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

      レポーター名またはモジュールまたはファイルパス

    • 1 Object

      レポーターオプションがある場合、そのオプションを含むオブジェクト


rootDir

追加されたバージョン: v1.20 fullConfig.rootDir

レポーターで使用されるすべての相対パスのベースディレクトリ。

使用法

fullConfig.rootDir


shard

追加されたバージョン: v1.10 fullConfig.shard

testConfig.shard を参照。

使用法

fullConfig.shard

  • null | Object
    • total number

      シャードの総数。

    • current number

      実行するシャードのインデックス(1ベース)。


updateSnapshots

追加されたバージョン: v1.10 fullConfig.updateSnapshots

testConfig.updateSnapshots を参照。

使用法

fullConfig.updateSnapshots

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

updateSourceMethod

追加されたバージョン: v1.50 fullConfig.updateSourceMethod

testConfig.updateSourceMethod を参照。

使用法

fullConfig.updateSourceMethod

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

version

追加されたバージョン: v1.20 fullConfig.version

Playwright のバージョン。

使用法

fullConfig.version


webServer

追加されたバージョン: v1.10 fullConfig.webServer

testConfig.webServer を参照。

使用法

fullConfig.webServer


workers

追加されたバージョン: v1.10 fullConfig.workers

testConfig.workers を参照。

使用法

fullConfig.workers