Is there a way to select certain rows in data table to run based on its value?
For example, sometimes I wish to run all the rows where a<5, other times I wish to run the rest of the rows.
It happens in testing that there can be hundreds of rows of data in the table. And most of the time I just want to run a small subset of it. But I don't want to just duplicate this method, and split the data into two tables.
class Math extends Specification {
def "maximum of two numbers"(int a, int b, int c) {
expect:
Math.max(a, b) == c
where:
a | b | c
1 | 3 | 3
7 | 4 | 4
0 | 0 | 0
}
}
What can I try to solve this?