Chapter 8Integration Testing with Capybara and Cucumber
You spent the last few chapters focusing on testing the models and business logic of your Rails application. A web application is more than just business logic, though, so for the next few chapters, I’m going to talk about tests that tackle the parts of your application that either respond to user input or output data to the user.
There’s a lot of different terminology used to describe the various flavors of input and output tests you can write. First, there are generic terms that are not inherent to Rails, but are terms you might apply to any kind of testing:
-
An integration test is any test that covers more than one part of the application working together.
-
An end-to-end test is a specific ...
Get Rails 5 Test Prescriptions 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.