Packages

final case class TestConfig(pluginConfig: PluginConfig, bootstrapPluginConfig: PluginConfig = PluginConfig.empty, activation: distage.Activation = StandardAxis.testProdActivation, moduleOverrides: distage.Module = Module.empty, bootstrapOverrides: distage.BootstrapModule = BootstrapModule.empty, memoizationRoots: Set[_ <: distage.DIKey] = Set.empty, forcedRoots: Set[_ <: distage.DIKey] = Set.empty, parallelEnvs: Boolean = true, parallelSuites: Boolean = true, parallelTests: Boolean = true, configBaseName: String, configOverrides: Option[distage.config.AppConfig] = None, planningOptions: PlanningOptions = PlanningOptions(), testRunnerLogLevel: Level = Log.Level.Info) extends Product with Serializable

General options:

pluginConfig

Source of module definitions from which to build object graphs for each tests. Each PluginConfig creates a distinct memoization group (aka izumi.distage.testkit.services.dstest.TestEnvironment). Components specified in memoizationRoots will be memoized only for the tests in the same memoization group.

bootstrapPluginConfig

Same as pluginConfig, but for BootstrapModule

activation

Chosen activation axes. Different Activations will create distinct memoization groups

moduleOverrides

Override loaded plugins with a given Module. Using overrides will create a distinct memoization group, i.e. objects will be memoized only between tests with the exact same overrides

bootstrapOverrides

Same as moduleOverrides, but for BootstrapModule Parallelism options:

memoizationRoots

Specifies the components that will be created *once* and shared across all tests within the same memoization group (i.e. with the same TestConfig) Every distinct set of memoizationRoots will create a distinct memoization group

forcedRoots

Specifies components that will be treated as if they are a dependency of every test within this memoization group. They will not be garbage collected even if no other object or test declares a dependency on them components. When combined with memoizationRoots, a distage.DIResource binding can implement global start/stop lifecycle for all tests within this memoization group. Every distinct set of forcedRoots will create a distinct memoization group

parallelEnvs

Whether to run distinct memoization groups in parallel, default: true. Sequential envs will run in sequence after the parallel ones.

parallelSuites

Whether to run test suites in parallel, default: true.

parallelTests

Whether to run test cases in parallel, default: true. Other options:

configBaseName

Search for config in HOCON resource files with names $configBaseName.conf, $configBaseName-reference.conf, $configBaseName-reference-dev.conf (see izumi.distage.framework.services.ConfigLoader

configOverrides

Overriding definitions on top of main loaded config, default None

planningOptions

PlanningOptions, debug options for distage.Planner

testRunnerLogLevel

Verbosity of services.dstest.DistageTestRunner log messages, default: Info

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestConfig
  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 TestConfig(pluginConfig: PluginConfig, bootstrapPluginConfig: PluginConfig = PluginConfig.empty, activation: distage.Activation = StandardAxis.testProdActivation, moduleOverrides: distage.Module = Module.empty, bootstrapOverrides: distage.BootstrapModule = BootstrapModule.empty, memoizationRoots: Set[_ <: distage.DIKey] = Set.empty, forcedRoots: Set[_ <: distage.DIKey] = Set.empty, parallelEnvs: Boolean = true, parallelSuites: Boolean = true, parallelTests: Boolean = true, configBaseName: String, configOverrides: Option[distage.config.AppConfig] = None, planningOptions: PlanningOptions = PlanningOptions(), testRunnerLogLevel: Level = Log.Level.Info)

    pluginConfig

    Source of module definitions from which to build object graphs for each tests. Each PluginConfig creates a distinct memoization group (aka izumi.distage.testkit.services.dstest.TestEnvironment). Components specified in memoizationRoots will be memoized only for the tests in the same memoization group.

    bootstrapPluginConfig

    Same as pluginConfig, but for BootstrapModule

    activation

    Chosen activation axes. Different Activations will create distinct memoization groups

    moduleOverrides

    Override loaded plugins with a given Module. Using overrides will create a distinct memoization group, i.e. objects will be memoized only between tests with the exact same overrides

    bootstrapOverrides

    Same as moduleOverrides, but for BootstrapModule Parallelism options:

    memoizationRoots

    Specifies the components that will be created *once* and shared across all tests within the same memoization group (i.e. with the same TestConfig) Every distinct set of memoizationRoots will create a distinct memoization group

    forcedRoots

    Specifies components that will be treated as if they are a dependency of every test within this memoization group. They will not be garbage collected even if no other object or test declares a dependency on them components. When combined with memoizationRoots, a distage.DIResource binding can implement global start/stop lifecycle for all tests within this memoization group. Every distinct set of forcedRoots will create a distinct memoization group

    parallelEnvs

    Whether to run distinct memoization groups in parallel, default: true. Sequential envs will run in sequence after the parallel ones.

    parallelSuites

    Whether to run test suites in parallel, default: true.

    parallelTests

    Whether to run test cases in parallel, default: true. Other options:

    configBaseName

    Search for config in HOCON resource files with names $configBaseName.conf, $configBaseName-reference.conf, $configBaseName-reference-dev.conf (see izumi.distage.framework.services.ConfigLoader

    configOverrides

    Overriding definitions on top of main loaded config, default None

    planningOptions

    PlanningOptions, debug options for distage.Planner

    testRunnerLogLevel

    Verbosity of services.dstest.DistageTestRunner log messages, default: Info

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 activation: distage.Activation
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val bootstrapOverrides: distage.BootstrapModule
  7. val bootstrapPluginConfig: PluginConfig
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  9. val configBaseName: String
  10. val configOverrides: Option[distage.config.AppConfig]
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. val forcedRoots: Set[_ <: distage.DIKey]
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val memoizationRoots: Set[_ <: distage.DIKey]
  16. val moduleOverrides: distage.Module
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. val parallelEnvs: Boolean
  21. val parallelSuites: Boolean
  22. val parallelTests: Boolean
  23. val planningOptions: PlanningOptions
  24. val pluginConfig: PluginConfig
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. val testRunnerLogLevel: Level
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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 Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped