Skip navigation links
org.spockframework.runtime

Interface IRunListener

    • Method Detail

      • beforeSpec

        void beforeSpec(SpecInfo spec)
        Called before a spec.
      • beforeFeature

        void beforeFeature(FeatureInfo feature)
        Called before each feature of a spec.
      • beforeIteration

        void beforeIteration(IterationInfo iteration)
        Called before each iteration of a data-driven feature. All data values have been computed successfully at this point. Not called for features that aren't data-driven (i.e. don't have a where-block).
      • afterIteration

        void afterIteration(IterationInfo iteration)
        Called after each iteration of a data-driven feature. Not called for features that aren't data-driven (i.e. don't have a where-block).
      • afterFeature

        void afterFeature(FeatureInfo feature)
        Called after each feature of a spec.
      • afterSpec

        void afterSpec(SpecInfo spec)
        Called after a spec.
      • error

        void error(ErrorInfo error)
        Called for every error that occurs during a spec run. May be called multiple times for the same method, for example if both the expect-block and the cleanup-block of a feature method fail.
      • specSkipped

        void specSkipped(SpecInfo spec)
        Called if a spec is skipped, for example because it is marked with @Ignore.
      • featureSkipped

        void featureSkipped(FeatureInfo feature)
        Called if a feature is skipped, for example because it is marked with @Ignore.

Copyright © 2017. All rights reserved