The core specification language.
Class Summary Class Description SpecificationBase class for Spock specifications.
Enum Summary Enum Description Retry.Mode
Annotation Types Summary Annotation Type Description AutoCleanupAutomatically cleans up the object stored in the annotated field or property at the end of its life time. ExecutionAllows to set the execution mode. FailsWithIndicates that a feature method is expected to fail with the given exception. IgnoreIndicates that a specification or feature method should not be run. IgnoreIfIgnores the annotated spec, feature or selected iterations if the given condition holds. IgnoreIf.Container IgnoreRestIndicates that all feature methods except the ones carrying this annotation should be ignored. IsolatedAllows the isolated execution of a Specification. IssueIndicates that a feature method or specification relates to one or more issues in an external issue tracking system. Issue.Container NarrativeAllows to attach a natural-language description to a spec. PendingFeatureIndicates that the feature is not fully implemented yet and should not be reported as error. PendingFeatureIfMarks the annotated feature or selected iterations as
PendingFeatureif the given condition holds.
PendingFeatureIf.Container RequiresIgnores the annotated spec, feature or selected iterations unless the given condition holds. Requires.Container ResourceLockAllows to control access to a shared resource. ResourceLock.Container RetryRetries the given feature if an exception occurs during execution. RollupIndicates 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. SeeOne or more references to external information related to a specification or feature. See.Container SharedIndicates that a field is shared among all feature methods in a specification. StepwiseIndicates that a 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. SubjectIndicates which objects/classes are the subjects of a specification. Subject.Container TempDirGenerate a temp directory for test, and delete it after test. TimeoutIndicates that the execution of a method should time out after the given duration has elapsed. TitleAllows to attach a natural-language name to a spec. UnrollIndicates that iterations of a data-driven feature should be made visible as separate features to the outside world (IDEs, reports, etc.).