[英]Run single Grails unit/integration test will run all the tests on Intellij
Sometimes, when I run a single Grails unit or integration test on Intellij (latest version), it will run all the tests in the console. 有时,当我在Intellij(最新版本)上运行单个Grails单元或集成测试时,它将在控制台中运行所有测试。
What I do is right click single unit test class or method in the code and select run. 我要做的是右键单击代码中的单个单元测试类或方法,然后选择运行。
Sometimes it happened but sometimes it is OK. 有时发生了,但有时还可以。
Anyone has idea how to fix or prevent this happen? 任何人都知道如何解决或防止这种情况发生吗?
This could be IntellijIdea issue. 这可能是IntellijIdea问题。 I'd suggest to use grails command prompt for testing.
我建议使用grails命令提示符进行测试。 Just use:
只需使用:
grails test-app unit: YourTestClass
or 要么
grails test-app integration: YourIntegrationTestClass
This works for me. 这对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.