I have the following parameters for the same test:
a | b | c
1 | 2 | 3
11 | 22 | 33
Spock provides the @Unroll
annotation for tests similar to this (with this set of parameters you can run to same tests with the vectors [1, 2, 3] and [11, 22, 33]).
However, I need to run the same test for all the possible permutations (e.g [1, 2, 3], [1, 2, 33], [11, 2, 33] and etc, all the 8 combinations). How can I achieve it?
Thanks for any thoughts!
You need
where:
[a, b, c] << [[1, 11], [2, 12], [3, 13]].combinations()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With