Rails 6 system tests, from top to bottom

Yesterday I did a deep dive into how Rails system tests work. While the Rails testing guide is a great start on how to use system tests, I couldn’t find a resource that broke down the various parts that make them work, and how they fit together. So I wrote up what I learned here:

I’d love feedback on whether I got any of that wrong. Thanks!


Aaaaaand now here’s a companion piece, a step-by-step guide to making Rails system tests in a Docker container use the browser on your host machine :grin:


Thank you so much for this.

1 Like