Then, enter grails run-app, and we're ready to test the validation.
然后,再输入grails run - app,我们准备开始测试验证了。
When you run this test by typing grails test-app -unit AdminService at the command prompt, it fails.
当在命令提示符处键入grails test-app -unit AdminService 来运行此测试时,将会失败。
You can, of course, type grails test-app -integration to run just the integration tests.
当然,您可以键入grails test - app -integration来仅运行集成测试。
To run the failing test, type grails test-app at the command prompt. You should see the results shown in Listing 5.
要运行这个将会失败的测试,在命令提示符处键入grails test - app。
Type grails test-app -unit to run just the unit tests.
键入grails test - app -unit运行单元测试。
Type grails test-app at the command prompt to run the tests. You should see results similar to those in Listing 12.
在命令行提示符键入grails test - app运行测试。
Type grails test-app at the command prompt to run the tests. You should see results similar to those in Listing 12.
在命令行提示符键入grails test - app运行测试。
应用推荐