Search code examples
testingconfigurationautomated-testse2e-testingtestcafe

Is it possible to have multiple .testcaferc.json files in TestCafe 1.x per environment?


Summary
Is it possible to have multiple .testcaferc.json files in TestCafe 1.x per environment? For example:

 - .testcaferc.json                // contains base configuration 
 - .testcaferc.dev.json            // contains development overrides
 - .testcaferc.prod.json           // contains production overrides

testcafe --env=development

Note: I'm specifically asking about the .testcaferc.json, not a custom config.json as that would require import.


Solution

  • As of now, only one .testcaferc.json file is supported. Support for multiple configuration files was requested on GitHub and looks like they may implement it as part of another feature, but no timeline was given.