ExamplesTimeout

trait ExamplesTimeout extends EachContext with AroundTimeout

This trait can be used to add a global time out to each example or for a specific one:

  • for each example mix-in the trait
  • for a single example import the object and use the upTo context:

my example must terminate in a reasonable amount of time ${upTo(3.seconds)(e1)}

Companion:
object
trait EachContext
trait FragmentsFactory
class Object
trait Matchable
class Any
object ExamplesTimeout.type

Value members

Concrete methods

def context: Env => Context

Inherited methods

def aroundTimeout(to: Duration)(implicit ee: ExecutionEnv): Around
Inherited from:
AroundTimeout
override protected def fragmentFactory: FragmentFactory
Definition Classes
EachContext -> FragmentsFactory
Inherited from:
EachContext
def upTo[T](to: Duration)(t: => T)(implicit asResult: AsResult[T], ee: ExecutionEnv): Result
Inherited from:
AroundTimeout