Class UnusedStepsSummaryPrinter

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

public final class UnusedStepsSummaryPrinter extends Object implements ColorAware, ConcurrentEventListener
Formatter to measure performance of steps. Includes average and median step duration.
  • Field Details

    • writer

      private final io.cucumber.usageformatter.MessagesToUsageWriter writer
  • Constructor Details

    • UnusedStepsSummaryPrinter

      public UnusedStepsSummaryPrinter(OutputStream out)
  • Method Details

    • setEventPublisher

      public void setEventPublisher(EventPublisher publisher)
      Description copied from interface: ConcurrentEventListener
      Set the event publisher. The plugin can register event listeners with the publisher.
      Specified by:
      setEventPublisher in interface ConcurrentEventListener
      Parameters:
      publisher - the event publisher
    • write

      private void write(io.cucumber.messages.types.Envelope event)
    • setMonochrome

      public void setMonochrome(boolean monochrome)
      Description copied from interface: ColorAware
      When set to monochrome the plugin should not use colored output.

      For the benefit of systems that do not support ANSI escape codes.

      Specified by:
      setMonochrome in interface ColorAware
      Parameters:
      monochrome - true if monochrome output should be used