Reputation: 51
here is the use case:
class AWSTest{
def setupSpec() {
//starts an AWS instance with an specific $version
}
def test1() {}
def test2() {}
}
I have a set of instances versions and I have to run a set of tests on each version.
With TestNG I have been able to create a new instance of AWSTest containing a version (from the set of versions) and then run all the instances of AWSTest in parallel
Is there any way to accomplish this in Spock?
Upvotes: 2
Views: 138
Reputation: 123950
There isn't an easy way to achieve this particular mode of parallelization in Spock. Perhaps you could create one subclass per AWS instance and instruct your build tool (e.g. Maven or Gradle) to run test classes in parallel.
Upvotes: 1