case class Stats(specs: Int = 0, examples: Int = 0, successes: Int = 0, expectations: Int = 0, failures: Int = 0, errors: Int = 0, pending: Int = 0, skipped: Int = 0, trend: Option[Stats] = None, timer: SimpleTimer = new SimpleTimer) extends Product with Serializable

The Stats class store results for the number of:

- linked specifications - examples (including linked examples) - successes - expectations - failures - errors - pending - skipped

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Stats
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Stats(specs: Int = 0, examples: Int = 0, successes: Int = 0, expectations: Int = 0, failures: Int = 0, errors: Int = 0, pending: Int = 0, skipped: Int = 0, trend: Option[Stats] = None, timer: SimpleTimer = new SimpleTimer)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def display(implicit args: Arguments): String

    display the statistics on 2 lines, with the time and trend

  7. def displayResults(implicit args: Arguments): String

    display the results on one line, always displaying examples/failures/errors and only displaying expectations/pending/skipped if necessary

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. val errors: Int
  10. val examples: Int
  11. val expectations: Int
  12. val failures: Int
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hasErrors: Boolean

    returns

    true if there are errors

  16. def hasExpectations: Boolean

    returns

    true if there are expectations

  17. def hasFailures: Boolean

    returns

    true if there are failures

  18. def hasFailuresOrErrors: Boolean

    returns

    true if there are errors or failures

  19. def hasIssues: Boolean

    returns

    true if there are failures or errors

  20. def hasSuspended: Boolean

    returns

    true if there are skipped or pending

  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def isSuccess: Boolean

    returns

    true if there are no issues at all

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def negate: Stats

    returns

    the "opposite" of this Stats object to be able to do subtractions

  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. val pending: Int
  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. def result: Product with Result with Serializable { ... /* 3 definitions in type refinement */ }

    returns

    an equivalent result for display

  30. val skipped: Int
  31. val specs: Int
  32. def startTimer: Stats

    returns

    the same stats but with a started timer

  33. val successes: Int
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def time: String

    returns

    the execution time

  36. val timer: SimpleTimer
  37. def toString(): String
    Definition Classes
    Stats → AnyRef → Any
  38. def toXml: Elem

    returns

    the xml representation of the statistics. Omit the attributes with 0 as a value for conciseness

  39. val trend: Option[Stats]
  40. def updateFrom(previous: Stats): Stats

    returns

    this Statistics object with some trend if relevant

  41. def updateFrom(previous: Option[Stats]): Stats

    returns

    this Statistics object with some trend if provided

  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  45. def withResult(result: Result): Stats

    set a specific result on this Stats object

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped