org.specs2.specification.core

Env

Related Docs: object Env | package core

case class Env(arguments: Arguments = Arguments(), selectorInstance: (Arguments) ⇒ Selector = ..., executorInstance: (Arguments) ⇒ Executor = ..., lineLogger: LineLogger = NoLineLogger, statsRepository: (Arguments) ⇒ StatisticsRepository = ..., executionEnv: ExecutionEnv = ExecutionEnv(), systemLogger: Logger = noLogging, random: Random = new scala.util.Random, fileSystem: FileSystem = FileSystem) 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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Env(arguments: Arguments = Arguments(), selectorInstance: (Arguments) ⇒ Selector = ..., executorInstance: (Arguments) ⇒ Executor = ..., lineLogger: LineLogger = NoLineLogger, statsRepository: (Arguments) ⇒ StatisticsRepository = ..., executionEnv: ExecutionEnv = ExecutionEnv(), systemLogger: Logger = noLogging, random: Random = new scala.util.Random, fileSystem: FileSystem = FileSystem)

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. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. lazy val executionContext: ExecutionContext

  9. val executionEnv: ExecutionEnv

  10. lazy val executor: Executor

  11. val executorInstance: (Arguments) ⇒ Executor

  12. lazy val executorService: ExecutorService

  13. val fileSystem: FileSystem

  14. def finalize(): Unit

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

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

    Definition Classes
    Any
  17. val lineLogger: LineLogger

  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. val random: Random

  22. lazy val selector: Selector

  23. val selectorInstance: (Arguments) ⇒ Selector

  24. def setArguments(args: Arguments): Env

    set new arguments

  25. def setExecutionEnv(env: ExecutionEnv): Env

    set a new execution environment

  26. def setLineLogger(logger: LineLogger): Env

    set new LineLogger

  27. def setStatisticRepository(repository: StatisticsRepository): Env

    set a new statistic repository

  28. def setTimeFactor(context: ExecutionContext): ExecutionContext

  29. def setWithoutIsolation: Env

    returns

    an isolated env

  30. def shutdown(): Unit

  31. lazy val statisticsRepository: StatisticsRepository

  32. val statsRepository: (Arguments) ⇒ StatisticsRepository

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

    Definition Classes
    AnyRef
  34. val systemLogger: Logger

  35. lazy val timeout: Timeout

  36. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped