是否可以使用与run-app相同的环境运行Grails集成测试? 换句话说,在启动嵌入式Tomcat(或其他容器)的环境中?
答案 0 :(得分:0)
功能性测试阶段可能就是您正在寻找的。它启动嵌入式容器,以便您可以通过浏览器/ URL测试/访问应用程序。
Grails文档不是很精确,因为它说" Grails没有直接编写功能测试的任何支持,但有几个插件可用于此。"
然而
update table1 as t1 inner join (select valueold, valuenew from table2) as t2
on find_in_set(t2.valueold,t1.value)
set value = (select result from
(SELECT id,value,valueold,valuenew,
trim(',' from concat_ws(',',substring_index(value,',',find_in_set(valueold,value)-1)
,valuenew, substring(value,length(substring_index(value,',',find_in_set(valueold,value)) )+2) )) as result
FROM table1 as st1 inner join (select valueold, valuenew from table2) as st2
on find_in_set(st2.valueold,st1.value)) as tresult
where tresult.id = t1.id and tresult.valueold=t2.valueold and tresult.valuenew=t2.valuenew
)
工作正常,可以运行" functional"带有Tomcat /容器的子目录。