case class Env(arguments: Arguments, systemLogger: Logger, selectorInstance: (Arguments) ⇒ Selector, executorInstance: (Arguments) ⇒ Executor, lineLogger: LineLogger, statsRepository: (Arguments) ⇒ StatisticsRepository, random: Random, fileSystem: FileSystem, executionParameters: ExecutionParameters, customClassLoader: Option[ClassLoader], classLoading: ClassLoading, executionEnv: ExecutionEnv, specs2ExecutionEnv: ExecutionEnv) extends Product with Serializable
Whole creation / execution / reporting environment for a specification
Part of it is driven by the command-line, part of it is specs2 implementation Yet it can be used to drive the creation or execution of examples
Note: creating an Env instance is a delicate activity because the Env hold a thread pool that needs to be shutdown at the end of the execution
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Env
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Env(arguments: Arguments, systemLogger: Logger, selectorInstance: (Arguments) ⇒ Selector, executorInstance: (Arguments) ⇒ Executor, lineLogger: LineLogger, statsRepository: (Arguments) ⇒ StatisticsRepository, random: Random, fileSystem: FileSystem, executionParameters: ExecutionParameters, customClassLoader: Option[ClassLoader], classLoading: ClassLoading, executionEnv: ExecutionEnv, specs2ExecutionEnv: ExecutionEnv)
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
- val arguments: Arguments
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val classLoading: ClassLoading
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- lazy val commandLine: CommandLine
- val customClassLoader: Option[ClassLoader]
- def defaultInstances: List[AnyRef]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def executionContext: ExecutionContext
- val executionEnv: ExecutionEnv
- val executionParameters: ExecutionParameters
- lazy val executor: Executor
- val executorInstance: (Arguments) ⇒ Executor
- def executorServices: ExecutorServices
- val fileSystem: FileSystem
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lineLogger: LineLogger
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val random: Random
- lazy val selector: Selector
- val selectorInstance: (Arguments) ⇒ Selector
-
def
setArguments(args: Arguments): Env
set new arguments
- def setContextClassLoader(): Unit
-
def
setCustomClassLoader(classLoader: ClassLoader): Env
set a new classloader to be used as the context classloader for each execution
-
def
setLineLogger(logger: LineLogger): Env
set new LineLogger
-
def
setStatisticRepository(repository: StatisticsRepository): Env
set a new statistic repository
-
def
setSystemLogger(logger: (String) ⇒ Unit): Env
set new system logger
- def setTimeout(duration: FiniteDuration): Env
-
def
setWithIsolation: Env
- returns
an isolated env
-
def
setWithoutIsolation: Env
- returns
a non isolated env
- def shutdown(): Unit
- def specs2ExecutionContext: ExecutionContext
- val specs2ExecutionEnv: ExecutionEnv
- lazy val statisticsRepository: StatisticsRepository
- val statsRepository: (Arguments) ⇒ StatisticsRepository
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val systemLogger: Logger
- lazy val timeout: Option[FiniteDuration]
-
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
- @throws( ... ) @native()