Ruby on rails difference between integration and functional testing

I am wondering if I use integration testing, do I need functional testing? What about acceptance testing? I'm trying to figure out if I can stick to integration testing and then just forget about functional testing?

+6
source share
2 answers

Have you read the official Rails manual?

Rails tests various actions of a single controller by writing functional tests for that controller.

http://guides.rubyonrails.org/testing.html#functional-tests-for-your-controllers

Integration tests are used to test the interaction between any number of controllers. They are commonly used to check important workflows within your application.

http://guides.rubyonrails.org/testing.html#integration-testing

+11
source

The quick answer: integration testing is, in essence, a subset of functional testing, and acceptance testing is a form of functional testing.

I recommend reading the wikipedia related articles . Keep in mind that definitions of different types of tests can be taken with a grain of salt.

+2
source

Source: https://habr.com/ru/post/912685/


All Articles