如何运行在一个控制器上进行集成测试?
How to run integration test on one controller?
我想知道是否可以在 grails 中 运行 对单个控制器进行集成测试。对于 运行 宁所有集成测试,我使用
grails test-app -integration
我如何运行 1 个名为 SurveyController 的控制器的集成测试。
感谢您的帮助!谢谢!
它应该有效
grails test-app integration: SurveyController
您好,请指定集成测试的完整路径(复制它的引用)class如下..
grails test-app -integration path_to_integration_test.SurveyControllerIntegrationSpec
注意:指定测试class名称而不是控制器名称。
我想知道是否可以在 grails 中 运行 对单个控制器进行集成测试。对于 运行 宁所有集成测试,我使用
grails test-app -integration
我如何运行 1 个名为 SurveyController 的控制器的集成测试。
感谢您的帮助!谢谢!
它应该有效
grails test-app integration: SurveyController
您好,请指定集成测试的完整路径(复制它的引用)class如下..
grails test-app -integration path_to_integration_test.SurveyControllerIntegrationSpec
注意:指定测试class名称而不是控制器名称。