Class CucumberSerenityRunner

java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.ParentRunner<?>>
io.cucumber.junit.CucumberSerenityBaseRunner
io.cucumber.junit.CucumberSerenityRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Orderable, org.junit.runner.manipulation.Sortable
Direct Known Subclasses:
CucumberWithSerenity

public class CucumberSerenityRunner extends CucumberSerenityBaseRunner
Glue code for running Cucumber via Serenity. Sets up Serenity reporting and instrumentation.
  • Constructor Details

    • CucumberSerenityRunner

      public CucumberSerenityRunner(Class clazz) throws org.junit.runners.model.InitializationError
      Constructor called by JUnit.
      Parameters:
      clazz - the class with the @RunWith annotation.
      Throws:
      org.junit.runners.model.InitializationError - if there is another problem
  • Method Details

    • createSerenityEnabledRuntime

      public static io.cucumber.core.runtime.Runtime createSerenityEnabledRuntime(Supplier<ClassLoader> classLoaderSupplier, io.cucumber.core.options.RuntimeOptions runtimeOptions, net.thucydides.model.webdriver.Configuration systemConfiguration)