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
    @HotSpotIntrinsicCandidate() @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. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. val lineLogger: LineLogger

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  25. val random: Random

    Permalink
  26. lazy val selector: Selector

    Permalink
  27. val selectorInstance: (Arguments) ⇒ Selector

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

    Permalink

    set new arguments

  29. def setContextClassLoader(): Unit

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

    Permalink

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

  31. def setLineLogger(logger: LineLogger): Env

    Permalink

    set new LineLogger

  32. def setStatisticRepository(repository: StatisticsRepository): Env

    Permalink

    set a new statistic repository

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

    Permalink

    set new system logger

  34. def setTimeout(duration: FiniteDuration): Env

    Permalink
  35. def setWithIsolation: Env

    Permalink

    returns

    an isolated env

  36. def setWithoutIsolation: Env

    Permalink

    returns

    a non isolated env

  37. def shutdown(): Unit

    Permalink
  38. def specs2ExecutionContext: ExecutionContext

    Permalink
  39. val specs2ExecutionEnv: ExecutionEnv

    Permalink
  40. lazy val statisticsRepository: StatisticsRepository

    Permalink
  41. val statsRepository: (Arguments) ⇒ StatisticsRepository

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

    Permalink
    Definition Classes
    AnyRef
  43. val systemLogger: Logger

    Permalink
  44. lazy val timeout: Option[FiniteDuration]

    Permalink
  45. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(): Unit

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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped