Annotation Type PendingFeatureIf
@Beta @Retention(RUNTIME) @Target(METHOD) @Repeatable(Container.class) public @interface PendingFeatureIfMarks the annotated feature or selected iterations as
PendingFeatureif the given condition holds. Otherwise it will be treated like a normal feature or iteration.
The configured closure is called with a delegate of type
PreconditionContextwhich provides access to system properties, environment variables, the type of operating system and JVM.
If applied to a data driven feature, the closure can also access the data variables. If the closure does not reference any actual data variables, the whole feature is deemed pending and only if all iterations become successful will be marked as failing. But if the closure actually does reference valid data variables, the individual iterations where the condition holds are deemed pending and each will individually fail as soon as it would be successful without this annotation.
- See Also:
String reasonThe reason why this feature is pending
- the string to use for the skip message