0

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?

Manuel Jordan
  • 15,253
  • 21
  • 95
  • 158

1 Answers1

1

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.

thokuest
  • 5,800
  • 24
  • 36
  • Thank you, let me test your approach. About `assemble`, is not correct, the correct approach is `build -x test`, please read the following https://stackoverflow.com/a/4714118/3665178 – Manuel Jordan Jan 18 '21 at 11:33