Rails System Tests In Docker

28-Apr-2020 1729

At Hint, we use Docker extensively. It is our development environment for all of our projects. On a recent greenfield project, we wanted to use Rails System Tests to validate the system from end to end.In order to comfortably use System Tests inside of Docker we had to ask ourselves a few questions:How do we use RSpec for System Tests?How do we run the tests in headless mode in a modern browser?Can we run the test in a non-headless browser for building and debugging efficiently?.

Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle