7

What are the techniques to improve the time taken for a Grails project to build and run its unit tests? For example, does Grails have an equivalent to the Maven 3 parallel build feature?

I am currently using Grails to build my application (not Gradle, etc), with Spock tests, being driven by Jenkins. I found a script to parallelize unit and integration tests, but I'm looking for more.

Here are some related issues:

UPDATE:

Community
  • 1
  • 1
Vahid Pazirandeh
  • 1,552
  • 3
  • 13
  • 29

1 Answers1

0

Take a look at plugin below for grails. This will allow execution of test cases into partitions which could be parallel as well. https://github.com/adrianbk/grails-partition-tests

It example usage could be(same is shared in link as well)

grails test partition-test "--split=1" "--totalSplits=1" --verbose --echoOut --stacktrace

split specify which partition to run and totalSplits specifies the total number of Partitions.

Vinay Prajapati
  • 7,199
  • 9
  • 45
  • 86