Package org.spockframework.runtime
Class AbstractRunListener
java.lang.Object
org.spockframework.runtime.AbstractRunListener
- All Implemented Interfaces:
IRunListener
- Direct Known Subclasses:
RevertMetaClassRunListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterFeature
(FeatureInfo feature) Called after each feature of a spec.void
afterIteration
(IterationInfo iteration) Called after each iteration of a data-driven feature.void
Called after a spec.void
beforeFeature
(FeatureInfo feature) Called before each feature of a spec.void
beforeIteration
(IterationInfo iteration) Called before each iteration of a data-driven feature.void
beforeSpec
(SpecInfo spec) Called before a spec.void
Called for every error that occurs during a spec run.void
featureSkipped
(FeatureInfo feature) Called if a feature is skipped, for example because it is marked with @Ignore.void
specSkipped
(SpecInfo spec) Called if a spec is skipped, for example because it is marked with @Ignore.
-
Constructor Details
-
AbstractRunListener
public AbstractRunListener()
-
-
Method Details
-
beforeSpec
Description copied from interface:IRunListener
Called before a spec.- Specified by:
beforeSpec
in interfaceIRunListener
-
beforeFeature
Description copied from interface:IRunListener
Called before each feature of a spec.- Specified by:
beforeFeature
in interfaceIRunListener
-
beforeIteration
Description copied from interface:IRunListener
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).- Specified by:
beforeIteration
in interfaceIRunListener
-
afterIteration
Description copied from interface:IRunListener
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).- Specified by:
afterIteration
in interfaceIRunListener
-
afterFeature
Description copied from interface:IRunListener
Called after each feature of a spec.- Specified by:
afterFeature
in interfaceIRunListener
-
afterSpec
Description copied from interface:IRunListener
Called after a spec.- Specified by:
afterSpec
in interfaceIRunListener
-
error
Description copied from interface:IRunListener
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.- Specified by:
error
in interfaceIRunListener
-
specSkipped
Description copied from interface:IRunListener
Called if a spec is skipped, for example because it is marked with @Ignore.- Specified by:
specSkipped
in interfaceIRunListener
-
featureSkipped
Description copied from interface:IRunListener
Called if a feature is skipped, for example because it is marked with @Ignore.- Specified by:
featureSkipped
in interfaceIRunListener
-