我最近将Grails升级到V2.3.7并注意到当我运行grails test-app functional:
时,应用程序会自动启动,如下所示:
:grails-test-app-functional
| Loading Grails 2.3.7
| Configuring classpath
| Running pre-compiled script
| Running pre-compiled script.
| Environment set to test
| Environment set to test.
| Environment set to test..
| Environment set to test...
| Environment set to test....
| Environment set to test.....
| Compiling 1 source files
| Compiling 1 source files.
| Compiling 1 source files..
| Compiling 1 source files...
| Compiling 1 source files....
| Compiling 1 source files.....
| Running Grails application
Configuring Spring Security Core ...
... finished configuring Spring Security Core
| Server running. Browse to http://localhost:8080/myApplication
这在V2.3.6中没有发生。我的问题是:
1)这是V2.3.7中的新功能还是我在不知情的情况下配置了什么?
2)如何禁用此应用程序的自动运行?
感谢。
答案 0 :(得分:2)
必须启动应用才能运行功能测试。功能测试与正在运行的应用程序交互。情况一直如此。