ua.gradsoft

managedfixture

package managedfixture

Provides building block for externally management fixtures (such as databases).

Managed fixture defined by

After defining managed fixture we can use one in tests by attaching to each fixture test description of required states and changed to this states on simple DSL (see FixtureStateDSL ). Test execution engine can use this information for splitting tests into sequence of parts, which can be executed in parallel, calculation of order of execution of those parts and running ones in this order.

Integration with popular scalatest package is available in managedfixture.

Visibility
  1. Public
  2. All

Type Members

  1. case class AnyState [SI <: FixtureStateTypes] (stateInfo: SI) extends FixtureStateCondition[SI] with Product with Serializable

  2. trait FixtureAccess [T <: FixtureStateTypes] extends AnyRef

    Test authors must implement this trait for wrapping access to managed fixture.

  3. trait FixtureStateChange [+T <: FixtureStateTypes] extends AnyRef

    Attributes
    sealed
  4. class FixtureStateCondition [SI <: FixtureStateTypes] extends AnyRef

    StateCondition - what states is needed and what aspects must be cleaned.

  5. trait FixtureStateDSL [T <: FixtureStateTypes] extends AnyRef

    DLS for fixture state: sentence in this DSL describe: how some test is related to fixture, i.

  6. class FixtureStateManager [T <: FixtureStateTypes] extends AnyRef

  7. trait FixtureStateTypes extends AnyRef

    information about possible states on which tests depends on.

  8. case class NewState [+T <: FixtureStateTypes] (state: _86.startStates.Value forSome { val _86: T }) extends FixtureStateChange[T] with Product with Serializable

  9. case class NoState [SI <: FixtureStateTypes] (stateInfo: SI) extends FixtureStateCondition[SI] with Product with Serializable

  10. trait RdbAccessHelper [T <: FixtureStateTypes] extends AnyRef

    FixtureAccess helper for relation databases.

  11. case class SetOfStatesAndAspects [SI <: FixtureStateTypes] (stateInfo: SI, allowedStartStates: Set[_137.startStates.Value forSome { val _137: SI }], neededStateAspects: Set[_139.stateAspects.Value forSome { val _139: SI }]) extends FixtureStateCondition[SI] with Product with Serializable

  12. case class TestFixtureStateUsageDescription [T <: FixtureStateTypes] (stateInfo: T, precondition: FixtureStateCondition[T], startStateChange: FixtureStateChange[T], stateAspectsChanged: Set[_239.stateAspects.Value forSome { val _239: T }], canRunParallel: Boolean) extends Product with Serializable

    Description of one test.

Value Members

  1. object ExecutionSequenceOptimizer extends AnyRef

  2. object FixtureStateTypes extends AnyRef

  3. object ReflectionUtils extends AnyRef

    helper class, which simplicify work with reflection

  4. object SameState extends FixtureStateChange[Nothing] with Product with Serializable

  5. object TestFixtureStateUsageDescription extends Serializable

  6. object UndefinedState extends FixtureStateChange[Nothing] with Product with Serializable