每个环境在 TestCafe 1.x 中是否可以有多个 .testcaferc.json 文件?
Is it possible to have multiple .testcaferc.json files in TestCafe 1.x per environment?
总结
每个环境在 TestCafe 1.x 中是否可以有多个 .testcaferc.json 文件?例如:
- .testcaferc.json // contains base configuration
- .testcaferc.dev.json // contains development overrides
- .testcaferc.prod.json // contains production overrides
testcafe --env=development
注意: 我特别询问 .testcaferc.json
,而不是自定义 config.json
,因为那需要 import
。
截至目前,仅支持一个 .testcaferc.json 文件。对多个配置文件的支持是 requested on GitHub and looks like they may implement it as part of another feature,但没有给出时间表。
总结
每个环境在 TestCafe 1.x 中是否可以有多个 .testcaferc.json 文件?例如:
- .testcaferc.json // contains base configuration
- .testcaferc.dev.json // contains development overrides
- .testcaferc.prod.json // contains production overrides
testcafe --env=development
注意: 我特别询问 .testcaferc.json
,而不是自定义 config.json
,因为那需要 import
。
截至目前,仅支持一个 .testcaferc.json 文件。对多个配置文件的支持是 requested on GitHub and looks like they may implement it as part of another feature,但没有给出时间表。