Reputation: 47
How can I maintain separate data files for different environments such as development, staging and production environment in Behat with Mink Extension.
Example : login credentials, order numbers , shipping address etc?
Upvotes: 2
Views: 157
Reputation: 626
You can use different configurations in different environments in several different ways (each detailed here):
--config
flag. For example, behat --config dev-config.yml
.export BEHAT_PARAMS='{"extensions" : {"Behat\\MinkExtension" : {"base_url" : "https://www.example.com/"}}}'
Ideally, you would not run behat in production. Tests like these should confirm behavior in development and staging. By them time your code is in production, these behaviors should be well established.
Upvotes: 1