[英]Integration tests with JUnit and web MVC
I am working on a Spring MVC application. 我正在开发Spring MVC应用程序。
Unit tests are already writen (nice 85% code coverage and lots of assertions :) 单元测试已经写好(85%的代码覆盖率和很多断言:)
Now I need to write integration tests. 现在,我需要编写集成测试。 I already have a look at stackoverflow still I do have some questions
我已经看过stackoverflow了,但我确实有一些疑问
UPDATE: Just to clarify, the project has not JSP or any HTML-related views, output is XML which can be easily validated with XSDs 更新:只是为了澄清,该项目没有JSP或任何与HTML相关的视图,输出的是XML,可以使用XSD轻松验证
I am assuming that you have used JUNIT to create your unit tests to achieve the impressive 85% code coverage. 我假设您已经使用JUNIT创建了单元测试,以实现令人印象深刻的85%的代码覆盖率。 Please notice that JUNIT is designed for unit testing only (thus the name JUNIT).
请注意,JUNIT仅用于单元测试(因此名称为JUNIT)。 Unit testing is done while the code is running in the development environment.
当代码在开发环境中运行时,将完成单元测试。
Integration testing can only be performed once the target code has been deployed in the target integration environment. 只有在目标集成环境中部署了目标代码后,才能执行集成测试。
You have mentioned that you application isn't a web application. 您已经提到您的应用程序不是Web应用程序。 Is it SOAP/Rest Web Service?
是SOAP / Rest Web服务吗? If so, you can use Soap UI [http://www.soapui.org/], to create and save automated regression/integration tests.
如果是这样,您可以使用Soap UI [http://www.soapui.org/]创建并保存自动回归/集成测试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.