org.specs2.specification.core

Env

case class Env(arguments: Arguments = main.Arguments.apply(), selectorInstance: (Arguments) ⇒ Selector = ..., executorInstance: (Arguments) ⇒ Executor = ..., lineLogger: LineLogger = reporter.LineLogger.NoLineLogger, statsRepository: (Arguments) ⇒ StatisticsRepository = ..., executionEnv: ExecutionEnv = ..., systemLogger: (String) ⇒ IO[Unit] = control.`package`.noLogging, random: Random = new scala.util.Random(), fileSystem: FileSystem = io.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 = main.Arguments.apply(), selectorInstance: (Arguments) ⇒ Selector = ..., executorInstance: (Arguments) ⇒ Executor = ..., lineLogger: LineLogger = reporter.LineLogger.NoLineLogger, statsRepository: (Arguments) ⇒ StatisticsRepository = ..., executionEnv: ExecutionEnv = ..., systemLogger: (String) ⇒ IO[Unit] = control.`package`.noLogging, random: Random = new scala.util.Random(), fileSystem: FileSystem = io.FileSystem)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val arguments: Arguments

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  10. lazy val executionContext: ExecutionContext

  11. val executionEnv: ExecutionEnv

  12. lazy val executor: Executor

  13. val executorInstance: (Arguments) ⇒ Executor

  14. lazy val executorService: ExecutorService

  15. val fileSystem: FileSystem

  16. def finalize(): Unit

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

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

    Definition Classes
    Any
  19. val lineLogger: LineLogger

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

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

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

    Definition Classes
    AnyRef
  23. val random: Random

  24. lazy val selector: Selector

  25. val selectorInstance: (Arguments) ⇒ Selector

  26. def setArguments(args: Arguments): Env

    set new arguments

  27. def setExecutionEnv(env: ExecutionEnv): Env

    set a new execution environment

  28. def setLineLogger(logger: LineLogger): Env

    set new LineLogger

  29. def setStatisticRepository(repository: StatisticsRepository): Env

    set a new statistic repository

  30. def setTimeFactor(context: ExecutionContext): ExecutionContext

  31. def setWithoutIsolation: Env

    returns

    an isolated env

  32. def shutdown(): Unit

  33. lazy val statisticsRepository: StatisticsRepository

  34. val statsRepository: (Arguments) ⇒ StatisticsRepository

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

    Definition Classes
    AnyRef
  36. val systemLogger: (String) ⇒ IO[Unit]

  37. lazy val timeout: Timeout

  38. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. 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