Class BaseSpecRunner

java.lang.Object
org.spockframework.runtime.BaseSpecRunner
Direct Known Subclasses:
ParameterizedSpecRunner

public class BaseSpecRunner extends Object
Executes a single Spec. Notifies its supervisor about overall execution progress and every invocation of Spec code. Supervisor also determines the error strategy.
Author:
Peter Niederwieser
  • Field Details

    • EMPTY_ARGS

      protected static final Object[] EMPTY_ARGS
    • spec

      protected final SpecInfo spec
    • supervisor

      protected final IRunSupervisor supervisor
    • currentFeature

      protected FeatureInfo currentFeature
    • currentIteration

      protected IterationInfo currentIteration
    • sharedInstance

      protected Specification sharedInstance
    • currentInstance

      protected Specification currentInstance
    • runStatus

      protected int runStatus
  • Constructor Details

  • Method Details

    • run

      public int run()
    • doRunSpec

      public void doRunSpec()
      Only called via reflection.
    • doRunFeature

      public void doRunFeature()
      Only called via reflection.
    • initializeAndRunIteration

      protected void initializeAndRunIteration(Object[] dataValues, int estimatedNumIterations)
    • doRunIteration

      public void doRunIteration()
      Only called via reflection.
    • resetStatus

      protected int resetStatus(int scope)
    • runParameterizedFeature

      protected void runParameterizedFeature()
    • invokeRaw

      protected Object invokeRaw(Object target, MethodInfo method, Object... arguments)
    • getSpecificationContext

      protected SpecificationContext getSpecificationContext(Specification instance)