【问题标题】:Is it possible to have multiple .testcaferc.json files in TestCafe 1.x per environment?每个环境是否可以在 TestCafe 1.x 中有多个 .testcaferc.json 文件?
【发布时间】:2019-04-02 14:59:56
【问题描述】:

总结
每个环境是否可以在 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。

【问题讨论】:

    标签: testing configuration automated-tests e2e-testing testcafe


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-12-06
      • 1970-01-01
      • 2016-08-15
      • 1970-01-01
      • 1970-01-01
      • 2018-10-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多