gradle test不运行Geb测试

时间:2016-03-30 20:54:13

标签: grails gradle bamboo geb grails-3.1

在Grails 3.1.4中:如果我使用Grails create-functional-test命令并创建Geb测试,当我使用Gradle测试任务时它不运行Geb测试,它只运行单元和集成测试,不是功能性的。

如果我使用Grails test-app命令,它会运行所有内容。我想在我的Bamboo 5.9.7集成服务器上使用Gradle构建。

如何使用Gradle运行所有测试,单元,集成和功能Geb测试?

2 个答案:

答案 0 :(得分:3)

test任务只应运行单元测试。您可能希望简要运行integrationTestiT

答案 1 :(得分:0)

In order to get grails3 gradle tests to mimic the way that grails test-app works in grails2 you might try using

gradlew --continue test iT

This will cause both unit and integration tests to run. Without the --continue option, if you have a failing unit test the integration tests will not execute.

Unfortunately I don't see how to add the "--continue" option to gradle commands when running from intellij.