org.specs2.specification

Stats

case class Stats (examples: Int, successes: Int, expectations: Int, failures: Int, errors: Int, pending: Int, skipped: Int, trend: Option[Stats], timer: 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. Hide All
  2. Show all
  1. Stats
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def canEqual (arg0: Any): Boolean

    Definition Classes
    Stats → Equals
  8. def clone (): AnyRef

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

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

  10. 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

  11. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  12. def equals (arg0: Any): Boolean

    Definition Classes
    Stats → Equals → AnyRef → Any
  13. val errors : Int

  14. val examples : Int

  15. val expectations : Int

  16. val failures : Int

  17. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  19. def hasErrors : Boolean

    returns

    true if there are errors

  20. def hasExpectations : Boolean

    returns

    true if there are expectations

  21. def hasFailures : Boolean

    returns

    true if there are failures

  22. def hasFailuresOrErrors : Boolean

    returns

    true if there are errors or failures

  23. def hasIssues : Boolean

    returns

    true if there are failures or errors

  24. def hasSuspended : Boolean

    returns

    true if there are skipped or pending

  25. def hashCode (): Int

    Definition Classes
    Stats → AnyRef → Any
  26. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  27. def isSuccess : Boolean

    returns

    true if there are no issues at all

  28. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  29. def negate : Stats

    returns

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

  30. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  31. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  32. val pending : Int

  33. def productArity : Int

    Definition Classes
    Stats → Product
  34. def productElement (arg0: Int): Any

    Definition Classes
    Stats → Product
  35. def productIterator : Iterator[Any]

    Definition Classes
    Product
  36. def productPrefix : String

    Definition Classes
    Stats → Product
  37. def result : Product with Serializable with Result { def mute: Product with Serializable with org.specs2.execute.Result }

    returns

    an equivalent result for display

  38. val skipped : Int

  39. def startTimer : Stats

    returns

    the same stats but with a started timer

  40. val successes : Int

  41. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  42. def time : String

    returns

    the execution time

  43. val timer : SimpleTimer

  44. def toString (): String

    Definition Classes
    Stats → AnyRef → Any
  45. def toXml : Elem

    returns

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

  46. val trend : Option[Stats]

  47. def updateFrom (previous: Stats): Stats

    returns

    this Statistics object with some trend if relevant

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

    returns

    this Statistics object with some trend if provided

  49. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any