Class/Object

org.specs2.specification.core

Env

Related Docs: object Env | package core

Permalink

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

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)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val arguments: Arguments

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val classLoading: ClassLoading

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. lazy val commandLine: CommandLine

    Permalink
  9. val customClassLoader: Option[ClassLoader]

    Permalink
  10. def defaultInstances: List[AnyRef]

    Permalink
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def executionContext: ExecutionContext

    Permalink
  13. val executionEnv: ExecutionEnv

    Permalink
  14. val executionParameters: ExecutionParameters

    Permalink
  15. lazy val executor: Executor

    Permalink
  16. val executorInstance: (Arguments) ⇒ Executor

    Permalink
  17. def executorServices: ExecutorServices

    Permalink
  18. val fileSystem: FileSystem

    Permalink
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. val lineLogger: LineLogger

    Permalink
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. val random: Random

    Permalink
  27. lazy val selector: Selector

    Permalink
  28. val selectorInstance: (Arguments) ⇒ Selector

    Permalink
  29. def setArguments(args: Arguments): Env

    Permalink

    set new arguments

  30. def setContextClassLoader(): Unit

    Permalink
  31. def setCustomClassLoader(classLoader: ClassLoader): Env

    Permalink

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

  32. def setLineLogger(logger: LineLogger): Env

    Permalink

    set new LineLogger

  33. def setStatisticRepository(repository: StatisticsRepository): Env

    Permalink

    set a new statistic repository

  34. def setSystemLogger(logger: (String) ⇒ Unit): Env

    Permalink

    set new system logger

  35. def setTimeout(duration: FiniteDuration): Env

    Permalink
  36. def setWithIsolation: Env

    Permalink

    returns

    an isolated env

  37. def setWithoutIsolation: Env

    Permalink

    returns

    a non isolated env

  38. def shutdown(): Unit

    Permalink
  39. def specs2ExecutionContext: ExecutionContext

    Permalink
  40. val specs2ExecutionEnv: ExecutionEnv

    Permalink
  41. lazy val statisticsRepository: StatisticsRepository

    Permalink
  42. val statsRepository: (Arguments) ⇒ StatisticsRepository

    Permalink
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. val systemLogger: Logger

    Permalink
  45. lazy val timeout: Option[FiniteDuration]

    Permalink
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped