Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Laravel 5.x Cookbook

You're reading from  Laravel 5.x Cookbook

Product type Book
Published in Sep 2016
Publisher Packt
ISBN-13 9781786462084
Pages 402 pages
Edition 1st Edition
Languages
Authors (2):
Terry Matula Terry Matula
Profile icon Terry Matula
Alfred Nutile Alfred Nutile
Profile icon Alfred Nutile
View More author details

Table of Contents (17) Chapters

Laravel 5.x Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. Setting Up and Installing Laravel 2. Using Composer Packages 3. Routing 4. Building Views and Adding Style 5. Working with Data 6. Adding Angular to Your App 7. Authentication, Security, and Subscriptions 8. Testing and Debugging Your Application 9. Adding Advanced Features to Your App 10. Deploying Your App Index

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:

  1. 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:

  2. Update behat.yml by adding a profile to it called production:

  3. Then run the following:

    > vendor/bin/behat -shome_ui --tags=@smoke --profile=production
    

    Tip

    I run an Artisan command to run all of these.

    Then, you will see it hit the production URL and only the scenarios you feel are safe for Behat.

  4. Another method is to log in as...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}