Class/Object

org.specs2.specification

Stats

Related Docs: object Stats | package specification

Permalink

case class Stats(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: - successes - expectations - failures - errors - pending - skipped

for each example

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

Instance Constructors

  1. new Stats(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)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def display(implicit args: Arguments): String

    Permalink

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

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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  9. val errors: Int

    Permalink
  10. val examples: Int

    Permalink
  11. val expectations: Int

    Permalink
  12. val failures: Int

    Permalink
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hasErrors: Boolean

    Permalink

    returns

    true if there are errors

  16. def hasExpectations: Boolean

    Permalink

    returns

    true if there are expectations

  17. def hasFailures: Boolean

    Permalink

    returns

    true if there are failures

  18. def hasFailuresOrErrors: Boolean

    Permalink

    returns

    true if there are errors or failures

  19. def hasIssues: Boolean

    Permalink

    returns

    true if there are failures or errors

  20. def hasSuspended: Boolean

    Permalink

    returns

    true if there are skipped or pending

  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def isSuccess: Boolean

    Permalink

    returns

    true if there are no issues at all

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def negate: Stats

    Permalink

    returns

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

  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. val pending: Int

    Permalink
  28. def result: Product with Serializable with Result { ... /* 3 definitions in type refinement */ }

    Permalink

    returns

    an equivalent result for display

  29. val skipped: Int

    Permalink
  30. def startTimer: Stats

    Permalink

    returns

    the same stats but with a started timer

  31. val successes: Int

    Permalink
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def time: String

    Permalink

    returns

    the execution time

  34. val timer: SimpleTimer

    Permalink
  35. def toString(): String

    Permalink
    Definition Classes
    Stats → AnyRef → Any
  36. def toXml: Elem

    Permalink

    returns

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

  37. val trend: Option[Stats]

    Permalink
  38. def updateFrom(previous: Stats): Stats

    Permalink

    returns

    this Statistics object with some trend if relevant

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

    Permalink

    returns

    this Statistics object with some trend if provided

  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped