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
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Env
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val arguments: Arguments
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val classLoading: ClassLoading
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. lazy val commandLine: CommandLine
  9. val customClassLoader: Option[ClassLoader]
  10. def defaultInstances: List[AnyRef]
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def executionContext: ExecutionContext
  13. val executionEnv: ExecutionEnv
  14. val executionParameters: ExecutionParameters
  15. lazy val executor: Executor
  16. val executorInstance: (Arguments) => Executor
  17. def executorServices: ExecutorServices
  18. val fileSystem: FileSystem
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. val lineLogger: LineLogger
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def productElementNames: Iterator[String]
    Definition Classes
    Product
  27. val random: Random
  28. lazy val selector: Selector
  29. val selectorInstance: (Arguments) => Selector
  30. def setArguments(args: Arguments): Env

    set new arguments

  31. def setContextClassLoader(): Unit
  32. def setCustomClassLoader(classLoader: ClassLoader): Env

    set a new classloader to be used as the context classloader for each execution

  33. def setLineLogger(logger: LineLogger): Env

    set new LineLogger

  34. def setStatisticRepository(repository: StatisticsRepository): Env

    set a new statistic repository

  35. def setSystemLogger(logger: (String) => Unit): Env

    set new system logger

  36. def setTimeout(duration: FiniteDuration): Env
  37. def setWithIsolation: Env

    returns

    an isolated env

  38. def setWithoutIsolation: Env

    returns

    a non isolated env

  39. def shutdown(): Unit
  40. def specs2ExecutionContext: ExecutionContext
  41. val specs2ExecutionEnv: ExecutionEnv
  42. lazy val statisticsRepository: StatisticsRepository
  43. val statsRepository: (Arguments) => StatisticsRepository
  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. val systemLogger: Logger
  46. lazy val timeout: Option[FiniteDuration]
  47. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped