Take a look at the plugin below for grails. This will allow you to run test cases on partitions that may also be parallel. https://github.com/adrianbk/grails-partition-tests
This usage example can be (the same general and in the link)
grails test partition-test "--split=1" "--totalSplits=1" --verbose --echoOut --stacktrace
split indicate which partition to run and totalSplits sets the total number of partitions.
source share