摘要
每个环境的 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,因为这需要导入

请您参考如下方法:

目前仅支持一个 .testcaferc.json 文件。对多个配置文件的支持是 requested on GitHub看起来他们可能会实现它 as part of another feature ,但没有给出时间表。


评论关闭
IT序号网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!