StatisticsRepository

case class StatisticsRepository(store: Store)

Store the execution statistics.

The actual store might be on disk on in-memory

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def getStatistics(specClassName: String): Operation[Option[Stats]]

get the latest statistics for a given specification

get the latest statistics for a given specification

def getStatisticsOr(specClassName: String, stats: Stats): Operation[Stats]

get the latest statistics for a given specification, or return a default value

get the latest statistics for a given specification, or return a default value

def previousResult(specClassName: String, d: Description): Operation[Option[Result]]
Returns:

the previous executed result of an example

def resetStatistics: Operation[Unit]

remove all previously stored statistics

remove all previously stored statistics

def storeResult(specClassName: String, description: Description, result: Result): Operation[Unit]
def storeStatistics(specClassName: String, stats: Stats): Operation[Unit]

store the final statistics for a given specification

store the final statistics for a given specification

Inherited methods

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