Testing your app on Production with Behat
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.
Getting ready
Any application will do. In my case, I am going to hit production with some tests I made earlier.
How to do it…
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: ...
Get Laravel 5.x Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.