Package spock.lang
The core specification language.
-
Class Summary Class Description Specification Base class for Spock specifications. -
Enum Summary Enum Description Retry.Mode -
Annotation Types Summary Annotation Type Description AutoCleanup Automatically cleans up the object stored in the annotated field or property at the end of its life time.Execution Allows to set the execution mode.FailsWith Indicates that a feature method is expected to fail with the given exception.Ignore Indicates that a specification or feature method should not be run.IgnoreIf Ignores the annotated spec, feature or selected iterations if the given condition holds.IgnoreIf.Container IgnoreRest Indicates that all feature methods except the ones carrying this annotation should be ignored.Isolated Allows the isolated execution of a Specification.Issue Indicates that a feature method or specification relates to one or more issues in an external issue tracking system.Issue.Container Narrative Allows to attach a natural-language description to a spec.PendingFeature Indicates that the feature is not fully implemented yet and should not be reported as error.PendingFeatureIf Marks the annotated feature or selected iterations asPendingFeature
if the given condition holds.PendingFeatureIf.Container Requires Ignores the annotated spec, feature or selected iterations unless the given condition holds.Requires.Container ResourceLock Allows to control access to a shared resource.ResourceLock.Container Retry Retries the given feature if an exception occurs during execution.Rollup Indicates that iterations of a data-driven feature should not be made visible as separate features to the outside world (IDEs, reports, etc.) but as one atomic test.See One or more references to external information related to a specification or feature.See.Container Shared Indicates that a field is shared among all feature methods in a specification.Stepwise When applied to a spec, the annotation indicates that the spec's feature methods should be run sequentially in their declared order (even in the presence of a parallel spec runner), always starting from the first method.Subject Indicates which objects/classes are the subjects of a specification.Subject.Container Tag Tag.Container TempDir Generate a temp directory for test, and delete it after test.Timeout Indicates that the execution of a method should time out after the given duration has elapsed.Title Allows to attach a natural-language name to a spec.Unroll Indicates that iterations of a data-driven feature should be made visible as separate features to the outside world (IDEs, reports, etc.).