Packages

abstract class SpecZIO extends DistageScalatestTestSuiteRunner[[γ$0$]ZIO[Any, Throwable, γ$0$]] with DistageAbstractScalatestSpec[[γ$1$]ZIO[Any, Throwable, γ$1$]]

Allows summoning objects from DI in tests via ZIO environment intersection types

trait PetStore[F[_, _]] {
  def purchasePet(name: String, cost: Int): F[Throwable, Boolean]
}

trait Pets[F[_, _]]
  def myPets: F[Throwable, List[String]]
}

val store = new PetStore[ZIO[PetStore[IO], _, _]] {
  def purchasePet(name: String, cost: Int): RIO[PetStore[IO], Boolean] = ZIO.accessM(_.get.purchasePet(name, cost))
}
val pets = new Pets[ZIO[Pets[IO], _, _]] {
  def myPets: RIO[Pets[IO], List[String]] = ZIO.accessM(_.get.myPets)
}

"test purchase pets" in {
  for {
    _    <- store.purchasePet("Zab", 213)
    pets <- pets.myPets
    _    <- assertIO(pets.contains("Zab"))
  } yield ()
  // : ZIO[PetStore[IO] with Pets[IO], Throwable, Unit]
}

Lambda parameters and environment may both be used at the same time to define dependencies:

"test purchase pets" in {
  (store: PetStore[IO]) =>
    for {
      _    <- store.purchasePet("Zab", cost = 213)
      pets <- pets.myPets
      _    <- assertIO(pets.contains("Zab"))
    } yield ()
    // : ZIO[PetsEnv, Throwable, Unit]
}
Linear Supertypes
DistageAbstractScalatestSpec[[γ$1$]ZIO[Any, Throwable, γ$1$]], WithSingletonTestRegistration[[γ$1$]ZIO[Any, Throwable, γ$1$]], DistageTestEnv, CanVerb, MustVerb, ShouldVerb, DistageScalatestTestSuiteRunner[[γ$0$]ZIO[Any, Throwable, γ$0$]], AbstractDistageSpec[[γ$0$]ZIO[Any, Throwable, γ$0$]], TestRegistration[[γ$0$]ZIO[Any, Throwable, γ$0$]], TestConfiguration, TestSuite, Suite, Serializable, Assertions, TripleEquals, TripleEqualsSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SpecZIO
  2. DistageAbstractScalatestSpec
  3. WithSingletonTestRegistration
  4. DistageTestEnv
  5. CanVerb
  6. MustVerb
  7. ShouldVerb
  8. DistageScalatestTestSuiteRunner
  9. AbstractDistageSpec
  10. TestRegistration
  11. TestConfiguration
  12. TestSuite
  13. Suite
  14. Serializable
  15. Assertions
  16. TripleEquals
  17. TripleEqualsSupport
  18. AnyRef
  19. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SpecZIO()(implicit defaultModule3: distage.DefaultModule3[ZIO], tagBIO3: distage.TagK3[ZIO], tagBIO: distage.TagKK[[β$4$, γ$5$]ZIO[Any, β$4$, γ$5$]])

Type Members

  1. class CheckingEqualizer[L] extends AnyRef
    Definition Classes
    TripleEqualsSupport
  2. class Equalizer[L] extends AnyRef
    Definition Classes
    TripleEqualsSupport
  3. trait NoArgTest extends () => Outcome with TestData
    Attributes
    protected
    Definition Classes
    TestSuite
  4. trait StringCanWrapperForVerb extends AnyRef
    Definition Classes
    CanVerb
  5. trait StringMustWrapperForVerb extends AnyRef
    Definition Classes
    MustVerb
  6. trait StringShouldWrapperForVerb extends AnyRef
    Definition Classes
    ShouldVerb

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. def !==[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]
    Definition Classes
    TripleEqualsSupport
  3. def !==(right: Null): TripleEqualsInvocation[Null]
    Definition Classes
    TripleEqualsSupport
  4. def !==[T](right: T): TripleEqualsInvocation[T]
    Definition Classes
    TripleEqualsSupport
  5. final def ##: Int
    Definition Classes
    AnyRef → Any
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def ===[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]
    Definition Classes
    TripleEqualsSupport
  8. def ===(right: Null): TripleEqualsInvocation[Null]
    Definition Classes
    TripleEqualsSupport
  9. def ===[T](right: T): TripleEqualsInvocation[T]
    Definition Classes
    TripleEqualsSupport
  10. def _sbtFindCurrentTestModuleClasspathElement(classpathElems: Seq[String]): Option[String]

    Override this to change the method for finding the test-classes directory for _sbtIsClassDefinedInCurrentTestModule

    Override this to change the method for finding the test-classes directory for _sbtIsClassDefinedInCurrentTestModule

    Attributes
    protected
    Definition Classes
    DistageScalatestTestSuiteRunner
  11. def _sbtIsClassDefinedInCurrentTestModule(classLoader: ClassLoader): (ClassInfo) => Boolean

    Override this to change the heuristic by which testkit determines that a test class is defined in the current SBT module.

    Override this to change the heuristic by which testkit determines that a test class is defined in the current SBT module.

    Affects SBT test runner only.

    By default we assume that classes with classfiles located in the first directory on the classpath which contains test-classes in its pathname are the classes defined in the current SBT test module.

    Definition Classes
    DistageScalatestTestSuiteRunner
    See also

    _sbtFindCurrentTestModuleClasspathElement - override this to change just the method for finding the test-classes directory not all the logic

  12. def _sbtReportFilteredOutTest(cls: ClassInfo, fileClassPathElem: String, firstTestClassesClassPathElem: String): Unit

    Override this to change or remove log message warning about a filtered out test class in _sbtIsClassDefinedInCurrentTestModule

    Override this to change or remove log message warning about a filtered out test class in _sbtIsClassDefinedInCurrentTestModule

    Attributes
    protected
    Definition Classes
    DistageScalatestTestSuiteRunner
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. macro def assert(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  15. macro def assert(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  16. macro def assertCompiles(code: String)(implicit pos: Position): Assertion
    Definition Classes
    Assertions
  17. macro def assertDoesNotCompile(code: String)(implicit pos: Position): Assertion
    Definition Classes
    Assertions
  18. def assertResult(expected: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  19. def assertResult(expected: Any, clue: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  20. def assertThrows[T <: AnyRef](f: => Any)(implicit classTag: ClassTag[T], pos: Position): Assertion
    Definition Classes
    Assertions
  21. macro def assertTypeError(code: String)(implicit pos: Position): Assertion
    Definition Classes
    Assertions
  22. macro def assume(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  23. macro def assume(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  24. def cancel(cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  25. def cancel(message: String, cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  26. def cancel(message: String)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  27. def cancel()(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  28. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  29. def config: model.TestConfig
    Attributes
    protected
    Definition Classes
    SpecZIODistageAbstractScalatestSpecTestConfiguration
  30. def convertEquivalenceToAToBConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: <:<[A, B]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  31. def convertEquivalenceToBToAConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: <:<[B, A]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  32. def convertToCheckingEqualizer[T](left: T): CheckingEqualizer[T]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  33. implicit def convertToEqualizer[T](left: T): Equalizer[T]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  34. implicit def convertToStringCanWrapper(o: String)(implicit position: Position): StringCanWrapperForVerb
    Definition Classes
    CanVerb
  35. implicit def convertToStringMustWrapperForVerb(o: String)(implicit position: Position): StringMustWrapperForVerb
    Definition Classes
    MustVerb
  36. implicit def convertToStringShouldWrapperForVerb(o: String)(implicit position: Position): StringShouldWrapperForVerb
    Definition Classes
    ShouldVerb
  37. implicit def convertToWordSpecStringWrapperDS3(s: String): DSWordSpecStringWrapperZIO
    Attributes
    protected
  38. def defaultEquality[A]: Equality[A]
    Definition Classes
    TripleEqualsSupport
  39. implicit val defaultModule3: distage.DefaultModule3[ZIO]
  40. implicit val defaultModulesIO: DefaultModule[[γ$0$]ZIO[Any, Throwable, γ$0$]]
  41. def distageSuiteId: SuiteId
    Attributes
    protected[this]
    Definition Classes
    DistageAbstractScalatestSpec
  42. def distageSuiteName: String
    Attributes
    protected[this]
    Definition Classes
    DistageAbstractScalatestSpec
  43. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  44. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  45. final def execute(testName: String, configMap: ConfigMap, color: Boolean, durations: Boolean, shortstacks: Boolean, fullstacks: Boolean, stats: Boolean): Unit
    Definition Classes
    Suite
  46. def expectedTestCount(filter: Filter): Int
    Definition Classes
    DistageScalatestTestSuiteRunner → Suite
  47. def fail(cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  48. def fail(message: String, cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  49. def fail(message: String)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  50. def fail()(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  51. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  52. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  53. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  54. def intercept[T <: AnyRef](f: => Any)(implicit classTag: ClassTag[T], pos: Position): T
    Definition Classes
    Assertions
  55. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  56. def loadRoles(): RolesInfo
    Attributes
    protected
    Definition Classes
    DistageTestEnv
  57. def lowPriorityTypeCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], ev: <:<[A, B]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  58. def makeMergeStrategy(): PluginMergeStrategy
    Attributes
    protected
    Definition Classes
    DistageTestEnv
  59. def makePluginloader(): distage.plugins.PluginLoader
    Attributes
    protected
    Definition Classes
    DistageTestEnv
  60. def makeTestEnv(): TestEnvironment
    Attributes
    protected[this]
    Definition Classes
    DistageAbstractScalatestSpec
  61. def modifyClasspathScan: (ClassGraph) => ClassGraph

    Modify test discovery options for SBT test runner only.

    Modify test discovery options for SBT test runner only. Overriding this with withWhitelistJarsOnly will slightly boost test start-up speed, but will disable the ability to discover tests that inherit izumi.distage.testkit.services.scalatest.dstest.DistageAbstractScalatestSpec indirectly through a different library JAR. (this does not affect local sbt modules)

    Definition Classes
    DistageScalatestTestSuiteRunner
  62. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  63. def nestedSuites: IndexedSeq[Suite]
    Definition Classes
    Suite
  64. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  65. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  66. def pending: Assertion with PendingStatement
    Definition Classes
    Assertions
  67. def pendingUntilFixed(f: => Unit)(implicit pos: Position): Assertion with PendingStatement
    Definition Classes
    Assertions
  68. def registerBranch(description: String, verb: String, fun: () => Unit): Unit
    Attributes
    protected[this]
    Definition Classes
    DistageAbstractScalatestSpec
  69. def registerTest[A](function: Functoid[ZIO[Any, Throwable, A]], env: TestEnvironment, pos: SourceFilePosition, id: TestId, meta: SuiteMeta): Unit
  70. def rerunner: Option[String]
    Definition Classes
    Suite
  71. def run(testName: Option[String], args: Args): Status
    Definition Classes
    DistageScalatestTestSuiteRunner → Suite
  72. final def runNestedSuites(args: Args): Status
    Attributes
    protected
    Definition Classes
    DistageScalatestTestSuiteRunner → Suite
  73. final def runTest(testName: String, args: Args): Status
    Attributes
    protected
    Definition Classes
    DistageScalatestTestSuiteRunner → TestSuite → Suite
  74. final def runTests(testName: Option[String], args: Args): Status
    Attributes
    protected
    Definition Classes
    DistageScalatestTestSuiteRunner → Suite
  75. implicit val subjectRegistrationFunction1: StringVerbBlockRegistration
    Attributes
    protected
    Definition Classes
    DistageAbstractScalatestSpec
  76. final val succeed: Assertion
    Definition Classes
    Assertions
  77. def suiteId: String
    Definition Classes
    Suite
  78. def suiteName: String
    Definition Classes
    Suite
  79. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  80. implicit val tagBIO: distage.TagKK[[β$2$, γ$3$]ZIO[Any, β$2$, γ$3$]]
  81. implicit val tagBIO3: distage.TagK3[ZIO]
  82. implicit val tagMonoIO: distage.TagK[[γ$0$]ZIO[Any, Throwable, γ$0$]]
  83. def tags: Map[String, Set[String]]
    Definition Classes
    DistageScalatestTestSuiteRunner → Suite
  84. def testDataFor(testName: String, theConfigMap: ConfigMap): TestData
    Definition Classes
    DistageScalatestTestSuiteRunner → Suite
  85. final lazy val testEnv: TestEnvironment
    Attributes
    protected[this]
    Definition Classes
    DistageAbstractScalatestSpec
  86. def testNames: Set[String]
    Definition Classes
    DistageScalatestTestSuiteRunner → Suite
  87. def toString(): String
    Definition Classes
    AnyRef → Any
  88. def typeCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], ev: <:<[B, A]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  89. implicit def unconstrainedEquality[A, B](implicit equalityOfA: Equality[A]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  90. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  91. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  92. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  93. def withClue[T](clue: Any)(fun: => T): T
    Definition Classes
    Assertions
  94. def withFixture(test: NoArgTest): Outcome
    Attributes
    protected
    Definition Classes
    DistageScalatestTestSuiteRunner → TestSuite
  95. final def withWhitelistJarsOnly: (ClassGraph) => ClassGraph
    Attributes
    protected
    Definition Classes
    DistageScalatestTestSuiteRunner

Deprecated Value Members

  1. def conversionCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], cnv: (B) => A): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The conversionCheckedConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  2. def convertEquivalenceToAToBConversionConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: (A) => B): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The convertEquivalenceToAToBConversionConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  3. def convertEquivalenceToBToAConversionConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: (B) => A): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The convertEquivalenceToBToAConversionConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  4. def lowPriorityConversionCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], cnv: (A) => B): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The lowPriorityConversionCheckedConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  5. val styleName: String
    Definition Classes
    Suite
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The styleName lifecycle method has been deprecated and will be removed in a future version of ScalaTest with no replacement.

Inherited from DistageAbstractScalatestSpec[[γ$1$]ZIO[Any, Throwable, γ$1$]]

Inherited from WithSingletonTestRegistration[[γ$1$]ZIO[Any, Throwable, γ$1$]]

Inherited from DistageTestEnv

Inherited from CanVerb

Inherited from MustVerb

Inherited from ShouldVerb

Inherited from DistageScalatestTestSuiteRunner[[γ$0$]ZIO[Any, Throwable, γ$0$]]

Inherited from AbstractDistageSpec[[γ$0$]ZIO[Any, Throwable, γ$0$]]

Inherited from TestRegistration[[γ$0$]ZIO[Any, Throwable, γ$0$]]

Inherited from TestConfiguration

Inherited from TestSuite

Inherited from Suite

Inherited from Serializable

Inherited from Assertions

Inherited from TripleEquals

Inherited from TripleEqualsSupport

Inherited from AnyRef

Inherited from Any

Ungrouped