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
- Alphabetic
- By Inheritance
- Stats
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- 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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
display(implicit args: Arguments): String
display the statistics on 2 lines, with the time and trend
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val errors: Int
- val examples: Int
- val expectations: Int
- val failures: Int
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hasErrors: Boolean
- returns
true if there are errors
-
def
hasExpectations: Boolean
- returns
true if there are expectations
-
def
hasFailures: Boolean
- returns
true if there are failures
-
def
hasFailuresOrErrors: Boolean
- returns
true if there are errors or failures
-
def
hasIssues: Boolean
- returns
true if there are failures or errors
-
def
hasSuspended: Boolean
- returns
true if there are skipped or pending
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isSuccess: Boolean
- returns
true if there are no issues at all
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
negate: Stats
- returns
the "opposite" of this Stats object to be able to do subtractions
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val pending: Int
-
def
result: Product with Serializable with Result { ... /* 3 definitions in type refinement */ }
- returns
an equivalent result for display
- val skipped: Int
- val specs: Int
-
def
startTimer: Stats
- returns
the same stats but with a started timer
- val successes: Int
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
time: String
- returns
the execution time
- val timer: SimpleTimer
-
def
toString(): String
- Definition Classes
- Stats → AnyRef → Any
-
def
toXml: Elem
- returns
the xml representation of the statistics. Omit the attributes with 0 as a value for conciseness
- val trend: Option[Stats]
-
def
updateFrom(previous: Stats): Stats
- returns
this Statistics object with some trend if relevant
-
def
updateFrom(previous: Option[Stats]): Stats
- returns
this Statistics object with some trend if provided
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withResult(result: Result): Stats
set a specific result on this Stats object