I am trying to use the below Jenkins plugins to run Gradle tests in parallel in available slave nodes, Although the example mentioned for Maven and Ant update comment for Version 1.1 says “Gradle takes class files” So i assume it can be done for Gradle as well.
We have extensive amount of Test classes and wanted to run them in parallel without writing splitting logic ourselves and leave it to plugin to run and collate the result.
it can be done, though it requires some custom logic in your build script. The plugin itself creates a file per test split with the test classes which should be excluded. So what you need to do in your build is read that file and add the list of excludes to Gradle’s
Test task you are going to run. You can exclude the class files by using Test.exclude().