Package spock.lang

Annotation Type Isolated


@Beta
@Retention(RUNTIME)
@Target(TYPE)
public @interface Isolated
Allows the isolated execution of a Specification. No other specification will execute at the same time. This will also cause all features to run on the same thread as the Specification. If you need more fine grained control take a look at ResourceLock
Since:
2.0
See Also:
Execution, ResourceLock
  • Optional Element Summary

    Optional Elements
    Modifier and Type Optional Element Description
    String value
    The reason for isolating this specification.
  • Element Details

    • value

      String value
      The reason for isolating this specification.

      Sometimes it is not readily apparent why a Spec was isolated, so you can add a reason here.

      Default:
      ""