All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sbt.testing.Event.scala Maven / Gradle / Ivy

The newest version!
/*
 * Scala.js (https://www.scala-js.org/)
 *
 * Copyright EPFL.
 *
 * Licensed under Apache License 2.0
 * (https://www.apache.org/licenses/LICENSE-2.0).
 *
 * See the NOTICE file distributed with this work for
 * additional information regarding copyright ownership.
 */

package sbt.testing

/** An event fired by the test framework during a run. */
trait Event {

  /** The fully qualified name of a class that can rerun the suite or test
   *  about which an event was fired.
   */
  def fullyQualifiedName(): String

  /** The fingerprint of the test class whose fully qualified name is returned
   *  by the fullyQualifiedName method on this Event.
   *
   *  If the isModule method of the fingerprint indicates that the
   *  fullyQualifiedName refers to a module (singleton object),
   *  the fullyQualifiedName string does not include the trailing
   *  dollar sign.
   */
  def fingerprint(): Fingerprint

  /** Additional information identifying the suite or test about which an event
   *  was fired.
   */
  def selector(): Selector

  /** Indicates whether the event represents a test success, failure, error,
   *  skipped, ignored, canceled, pending.
   */
  def status(): Status

  /** An OptionalThrowable
   *  associated with this Event.
   */
  def throwable(): OptionalThrowable

  /** An amount of time, in milliseconds, that was required to complete the
   *  action reported by this event, or -1, if no duration was available.
   */
  def duration(): Long
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy