Stats

case class Stats(specs: Int, examples: Int, successes: Int, expectations: Int, failures: Int, errors: Int, pending: Int, skipped: Int, trend: Option[Stats], timer: SimpleTimer)

The Stats class store results for the number of:

  • linked specifications
  • examples (including linked examples)
  • successes
  • expectations
  • failures
  • errors
  • pending
  • skipped
Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def display(using args: Arguments): String

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

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

def displayResults(using args: Arguments): String

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

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

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

def isSuccess: Boolean
Returns

true if there are no issues at all

Returns

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

def result: Result
Returns

an equivalent result for display

Returns

the same stats but with a started timer

def time: String
Returns

the execution time

override def toString: String
Definition Classes
Any
def updateFrom(previous: Option[Stats]): Stats
Returns

this Statistics object with some trend if provided

def updateFrom(previous: Stats): Stats
Returns

this Statistics object with some trend if relevant

def withResult(result: Result): Stats

set a specific result on this Stats object

set a specific result on this Stats object

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product