grails - How to get index being tested on where block using spock? -


is there way index being tested on spock? have block this:

where: column1 | column2 1 | 3 1 | 4 2 | 5 6 | 8 

i want know if it's possible index being executed on test. if i'm running first test (1 | 3) index 0. if i'm running third test (2 | 5) index 2.

is there way index inside test?

you need add, @unroll test definition , in test name put #column1 output value

@unroll def "something #column1 , #column2"() {    ...  } 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -