(Quick Reference)

2.10 测试应用 - Reference Documentation

Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith

Version: null

2.10 测试应用

The create-* commands in Grails automatically create unit or integration tests for you within the test/unit or test/integration directory. It is of course up to you to populate these tests with valid test logic, information on which can be found in the section on Testing.

To execute tests you run the test-app command as follows:

grails test-app

那些 create-* 命令将会在你的 test/unit 或者 test/integration 目录下自动创建单元或者集成测试,当然了,这些验证这些测试的逻辑还是需要你来处理的,更多信息可以在测试章节中找到。

执行这些测试,只需要输入test-app命令即可,比如:

grails test-app