Class TestRunFinished

java.lang.Object
io.cucumber.messages.types.TestRunFinished

public final class TestRunFinished extends Object
Represents the TestRunFinished message in Cucumber's message protocol
  • Constructor Details

  • Method Details

    • getMessage

      public Optional<String> getMessage()
      An informative message about the test run. Typically additional information about failure, but not necessarily.
    • getSuccess

      public Boolean getSuccess()
      A test run is successful if all steps are either passed or skipped, all before/after hooks passed and no other exceptions where thrown.
    • getTimestamp

      public Timestamp getTimestamp()
      Timestamp when the TestRun is finished
    • getException

      public Optional<Exception> getException()
      Any exception thrown during the test run, if any. Does not include exceptions thrown while executing steps.
    • getTestRunStartedId

      public Optional<String> getTestRunStartedId()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object