Class ProgressFormatter

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

public final class ProgressFormatter extends Object implements io.cucumber.plugin.ConcurrentEventListener, io.cucumber.plugin.ColorAware
Renders a rudimentary progress bar.

Each character in the bar represents either a step or hook. The status of that step or hook is indicated by the character and its color.

  • Constructor Details

    • ProgressFormatter

      public ProgressFormatter(OutputStream out)
  • Method Details

    • setMonochrome

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

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