简体   繁体   English

系统测试VS集成测试Rails 5.1?

[英]System tests VS integration tests Rails 5.1?

Before upgrading to rails 5.1 i test my rails app via integration tests. 在升级到rails 5.1之前,我通过集成测试测试我的rails应用程序。 And 70% of my rails app is automated via integration tests. 70%的rails应用程序通过集成测试自动化。 Means all of application simple and complex behaviors are automated via integration tests. 意味着所有应用程序简单和复杂的行为都通过集成测试自动化。 Off-course rails did not provided any java-script based testing. 偏离轨道的轨道没有提供任何基于java脚本的测试。

With Arrival of Rails 5.1 they include system tests and said that every app interact with java-script and now you can test your app end to end scenarios like a real user interacting with browser. 随着Rails 5.1的到来,它们包括系统测试,并表示每个应用程序都与java脚本交互,现在您可以测试您的应用程序端到端场景,如真实用户与浏览器交互。 So my manager ask me to move all integration tests to system tests . 所以我的经理要求我将所有集成测试移到系统测试中 Ok good! 好的好! we can test our application the way our users experience it and help us test JavaScript as well. 我们可以按照用户体验它的方式测试我们的应用程序,并帮助我们测试JavaScript。

Definitely system test can cover almost all integration tests as well. 绝对系统测试也可以涵盖几乎所有的集成测试。 So whats the importance of integration testing now ? 那么现在集成测试的重要性是什么?

Why should someone write integration test in Rails 5.1 when he can write same test case in System test? 为什么有人在系统测试中编写相同的测试用例时,应该在Rails 5.1中编写集成测试?

Thanks in advance. 提前致谢。

我不知道是相同的,但是从这个我得到的印象是,系统测试将取代集成测试-但唯一的缺点似乎是速度和资源使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM