You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature proposal - Unroll parameterized features/tests by default
In most of the cases parameterized features/tests are more readable while unrolled. Even if the @Unroll annotation is placed at the specification/class level it's still boiler plate code to write. Following the common use cases it would be more natural to unroll all parameterized tests by default (with an option to disable it on per test or class basis).
Starting with Spock 2.0 all parameterized tests would be unrolled by default. There would be still an ability to provide custom messages with the @Unroll("...") annotation. If desired the unrolling would be possible to disable for a test or the whole class with a dedicated annotation - @Roll).
Solutions for 1.x
There is the spock-global-unroll (global) extension which once added to classpath automatically unroll all parameterized tests in the whole projects. There is no need to add any extra code or annotation - all (parameter-less) @Unroll annotations can be removed.
It can be used as a preparation for Spock 2.0 with similar behavior available out-of-box.
Feel free to leave comment in that issue.
The text was updated successfully, but these errors were encountered: