Class PrettyFormatter

java.lang.Object
io.cucumber.core.plugin.PrettyFormatter
All Implemented Interfaces:
io.cucumber.plugin.ColorAware, io.cucumber.plugin.ConcurrentEventListener, io.cucumber.plugin.Plugin

public final class PrettyFormatter extends Object implements io.cucumber.plugin.ConcurrentEventListener, io.cucumber.plugin.ColorAware
Prints a pretty report of the scenario execution as it happens.

When scenarios are executed concurrently the output will interleave. This is to be expected.

  • Constructor Details

    • PrettyFormatter

      public PrettyFormatter(OutputStream out)
  • Method Details

    • setEventPublisher

      public void setEventPublisher(io.cucumber.plugin.event.EventPublisher publisher)
      Specified by:
      setEventPublisher in interface io.cucumber.plugin.ConcurrentEventListener
    • setMonochrome

      public void setMonochrome(boolean monochrome)
      Specified by:
      setMonochrome in interface io.cucumber.plugin.ColorAware