So, your application is now on Production! Start clicking away at hundreds of little and big features, so you can make sure everything went okay; or, better yet, run Behat! Behat on Production? Sounds crazy, but I will cover some tips on how to do this, including how to set up some remote conditions and clean up when you are done.
Any application will do. In my case, I am going to hit production with some tests I made earlier.
The following are the steps to be followed:
Tag a Behat test called
@smoke
or just a scenario that you know is safe to run on Production, for example,features/home/search.feature
:Update
behat.yml
by adding a profile to it calledproduction
:Then run the following:
> vendor/bin/behat -shome_ui --tags=@smoke --profile=production
Then, you will see it hit the production URL and only the scenarios you feel are safe for Behat.