Unit tests are meant to run in isolation, which means that no database is running, no Web server is running, and — most important — no Grails-related metaprogramming occurs.
单元测试意味着在隔离环境中运行,所以不会运行数据库和 Web 服务器,最重要的是不会发生与 Grails 相关的元编程。
Web 2.0 client developers do not need fully functional application servers and can often get by with a plain Web server or file system for unit testing.
Web 2.0 客户端开发人员不需要功能全面的应用程序服务器,一个普通 Web 服务器或单元测试文件系统也可以。
As a simple example, by watching central processing unit (CPU) usage on a Web server, you can see when it is overloaded.
作为一个简单的方法,查看一下Web服务器上的中央处理单元(CPU)使用率,就可以了解CPU是否负载过重。
应用推荐