ruby-on-rails – Ruby on rails集成和功能测试之间的区别

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – Ruby on rails集成和功能测试之间的区别前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我想知道,如果我使用集成测试,是否需要进行功能测试?那么验收测试呢?我很难理解,如果我能坚持集成测试,那么就忘了功能测试?

解决方法

你读过官方的Rails指南吗?

In Rails,testing the varIoUs actions of a single controller is called
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 among any number of
controllers. They are generally used to test important work flows
within your application.

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

原文链接:https://www.f2er.com/ruby/267276.html

猜你在找的Ruby相关文章