我们对正在开发的应用程序进行了大量测试。我已经知道如何在单元或集成中运行特定的测试类,例如:
grails test-app -integration FooIntegrationTest
在开发新的集成测试时,运行整个类可能需要很长时间(假设 FooIntegrationTest 有 100 个测试)。我只想运行整个测试组中的一个特定的单一测试。
最佳答案
grails test-app integration: FooIntegrationTest.testSample
如果 testSample()
是测试用例之一,应该这样做。
关于grails - 是否可以在 Grails 中运行测试类的单个测试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29284863/