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() @HotSpotIntrinsicCandidate()
  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. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. val lineLogger: LineLogger
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. def productElementNames: Iterator[String]
    Definition Classes
    Product
  26. val random: Random
  27. lazy val selector: Selector
  28. val selectorInstance: (Arguments) => Selector
  29. def setArguments(args: Arguments): Env

    set new arguments

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

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

  32. def setLineLogger(logger: LineLogger): Env

    set new LineLogger

  33. def setStatisticRepository(repository: StatisticsRepository): Env

    set a new statistic repository

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

    set new system logger

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

    returns

    an isolated env

  37. def setWithoutIsolation: Env

    returns

    a non isolated env

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

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped