spock.lang
Annotation Type Stepwise


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Stepwise

Indicates that the feature methods of a spec should be run sequentially in their declared order (even in the presence of a parallel spec runner), always starting from the first method. If a method fails, the remaining methods will be skipped. This is useful for higher-level specs with (logical) dependencies between methods. In particular, it helps to avoid consecutive errors after a method has failed, which makes it easier to understand what really went wrong.

Author:
Peter Niederwieser



Copyright © 2010. All Rights Reserved.