我想知道是否有可能在grails中运行单个控制器的集成测试。为了运行所有集成测试,我使用
grails test-app -integration
如何为名为SurveyController的1个控制器运行集成测试。
我感谢任何帮助!谢谢!
答案 0 :(得分:1)
您好请指定集成测试的完整路径(复制它的引用)类,如下所示。
grails test-app -integration path_to_integration_test.SurveyControllerIntegrationSpec
注意:指定测试类名称而不是控制器名称。
答案 1 :(得分:0)
应该有效
grails test-app integration: SurveyController