Skip to main content

FullProject

测试项目配置的运行时表示。在测试中可以通过 testInfo.project 和 workerInfo.project 访问,并会传递给测试报告器。要查看 Playwright 配置文件中项目的格式,请参见 TestProject。

🌐 Runtime representation of the test project configuration. It is accessible in the tests via testInfo.project and workerInfo.project and is passed to the test reporters. To see the format of the project in the Playwright configuration file please see TestProject instead.


属性​

🌐 Properties

dependencies​

Added in: v1.31 fullProject.dependencies

请参见 testProject.dependencies。

🌐 See testProject.dependencies.

用法

fullProject.dependencies

类型

  • [数组]<[字符串]>

grep​

Added in: v1.10 fullProject.grep

查看 testProject.grep。

🌐 See testProject.grep.

用法

fullProject.grep

类型

  • [正则表达式] | [数组]<[正则表达式]>

grepInvert​

Added in: v1.10 fullProject.grepInvert

请参阅 testProject.grepInvert。

🌐 See testProject.grepInvert.

用法

fullProject.grepInvert

类型

  • [空] | [正则表达式] | [数组]<[正则表达式]>

ignoreSnapshots​

Added in: v1.59 fullProject.ignoreSnapshots

参见 testProject.ignoreSnapshots。

🌐 See testProject.ignoreSnapshots.

用法

fullProject.ignoreSnapshots

类型


metadata​

Added in: v1.10 fullProject.metadata

请参见 testProject.metadata。

🌐 See testProject.metadata.

用法

fullProject.metadata

类型


name​

Added in: v1.10 fullProject.name

查看 testProject.name。

🌐 See testProject.name.

用法

fullProject.name

类型


outputDir​

Added in: v1.10 fullProject.outputDir

查看 testProject.outputDir。

🌐 See testProject.outputDir.

用法

fullProject.outputDir

类型


repeatEach​

Added in: v1.10 fullProject.repeatEach

参见 testProject.repeatEach。

🌐 See testProject.repeatEach.

用法

fullProject.repeatEach

类型


retries​

Added in: v1.10 fullProject.retries

参见 testProject.retries。

🌐 See testProject.retries.

用法

fullProject.retries

类型


snapshotDir​

Added in: v1.10 fullProject.snapshotDir

参见 testProject.snapshotDir。

🌐 See testProject.snapshotDir.

用法

fullProject.snapshotDir

类型


teardown​

Added in: v1.34 fullProject.teardown

参见 testProject.teardown。

🌐 See testProject.teardown.

用法

fullProject.teardown

类型


testDir​

Added in: v1.10 fullProject.testDir

参见 testProject.testDir。

🌐 See testProject.testDir.

用法

fullProject.testDir

类型


testIgnore​

Added in: v1.10 fullProject.testIgnore

参见 testProject.testIgnore。

🌐 See testProject.testIgnore.

用法

fullProject.testIgnore

类型

  • [字符串] | [正则表达式] | [数组]<[字符串] | [正则表达式]>

testMatch​

Added in: v1.10 fullProject.testMatch

参见 testProject.testMatch。

🌐 See testProject.testMatch.

用法

fullProject.testMatch

类型

  • [字符串] | [正则表达式] | [数组]<[字符串] | [正则表达式]>

timeout​

Added in: v1.10 fullProject.timeout

请参见 testProject.timeout。

🌐 See testProject.timeout.

用法

fullProject.timeout

类型


use​

Added in: v1.10 fullProject.use

请参见 testProject.use。

🌐 See testProject.use.

用法

fullProject.use

类型