Is there a spock equivalent of TestNG's @Test(threadPoolSize=n) that will allow me test the execution of a test, with multiple threads concurrently?
Basically, given a specification like so...
class SampleSpec extends Specification {
def "test concurrent access"(){
setup:
//do complex logic
expect:
//assert complex logic
}
}
What I want is a way to do this in spock, but with multiple threads spawned concurrently to execute the test method. In TestNG, I could easily achieve this by doing
@Test(threadPoolSize=10)
public void testMethod(){
//do complex logic and assertion
}
Thanks in advance.