StatisticsRepository

Store the execution statistics.

The actual store might be on disk on in-memory

class Object
trait Matchable
class Any

Value members

Abstract 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