简体   繁体   English

从Intellij IDEA开始慢速Grails测试

[英]Slow Grails test starting in Intellij IDEA

IDEA is starting a new Grails instance every time I wan't to run a single test. 每当我不想进行单一测试时,IDEA就会启动一个新的Grails实例。

Is there a way to use regular Grails runner but using interactive mode? 有没有办法使用常规的Grails运行器,但使用交互模式? Running tests in interactive mode id blazing fast :-) 以交互模式运行测试快速开始:-)

Why don't you run it from the command line ? 你为什么不从命令行运行它? I have found IDE to be very slow. 我发现IDE非常慢。 IF you are using version 2.1.1, you can use just the plain command grails. 如果您使用的是版本2.1.1,则只能使用普通命令grails。 That will give you the interactive console and from there just run the command test-app. 这将为您提供交互式控制台,并从那里运行命令test-app。 This will run all your test. 这将运行所有测试。 IF you want to run any particular test, you can do that also, just take a look here and you will see how you can run some particular test 如果您想要运行任何特定的测试,您也可以这样做,只需看看这里 ,您将看到如何运行某些特定的测试

If you are using version 1.3 you can use the command grails interactive and that will give you an interactive console. 如果您使用的是版本1.3,则可以使用grails interactive命令,它将为您提供交互式控制台。 You can use the same list of command test-app to run all your tests 您可以使用相同的命令test-app列表来运行所有测试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM