My approximately-true explanation. If a Rails application can be thought of a stack listed top-to-bottom as views-controllers-models, controller tests exercise controllers and everything “lower”. So controller tests test the “controllers-models” part of the “views-controllers-models” stack. Integration tests test the views and
Improve software quality: This testing helps improve your software’s overall quality. This leads to a higher quality product that meets the needs of your users. Reduce development time and cost: Integration tests can help to reduce development time and cost by catching issues early in the development process.
To follow this tutorial, you’ll need to have Ruby installed along with Rails. This tutorial was tested using Ruby version 2.3.3, Rails version 5.0.0.1, Minitest version 5.10.1, and Capybara version 2.11.1. Currently, there are no known issues with using earlier or later versions of any of those, however there will be some differences.
. 13 385 207 92 186 127 75 340 378