gradlespring-tool-suitebuildshipspring-tools-4

How pass Gradle command parameters to execute a task through Buildship


I know that if in Gradle I use: build -x test it builds and the test are not executed.

In STS with Buildship for support with Gradle, for example for Spring Integration

It has the following two tasks of my interest (build and test):

enter image description here

I can build with the following:

enter image description here

Because some test fails (randomly) I want skip the tests, so I tried

enter image description here

it fails with:

enter image description here

So I tried with:

enter image description here

And fails with

enter image description here

And with:

enter image description here

Nothing happens, only shows the following and stopping:

enter image description here

So how represent build -x test correctly with Buildship?


Solution

  • You must supply -x test as Program Arguments like this:

    Program Arguments configuration to exclude tests from Gradle build

    Or you just run assemble instead of build. assemble is a lifecycle task that aggregates all archive tasks in the project and, besides other tasks, does not execute check tasks, such as test.