Packages

abstract class Spec3[FR[-_, +_, +_]] extends DistageScalatestTestSuiteRunner[[γ$0$]FR[Any, Throwable, γ$0$]] with DistageAbstractScalatestSpec[[γ$1$]FR[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]]
}

type PetStoreEnv = Has[PetStore[IO]]
type PetsEnv = Has[Pets[IO]]

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

"test purchase pets" in {
  for {
    _    <- store.purchasePet("Zab", 213)
    pets <- pets.myPets
    _    <- assertIO(pets.contains("Zab"))
  } yield ()
  // : ZIO[PetStoreEnv with PetsEnv, 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", 213)
      pets <- pets.myPets
      _    <- assertIO(pets.contains("Zab"))
    } yield ()
    // : ZIO[PetsEnv, Throwable, Unit]
}
Linear Supertypes
DistageAbstractScalatestSpec[[γ$1$]FR[Any, Throwable, γ$1$]], WithSingletonTestRegistration[[γ$1$]FR[Any, Throwable, γ$1$]], DistageTestEnv, CanVerb, MustVerb, ShouldVerb, DistageScalatestTestSuiteRunner[[γ$0$]FR[Any, Throwable, γ$0$]], AbstractDistageSpec[[γ$0$]FR[Any, Throwable, γ$0$]], TestRegistration[[γ$0$]FR[Any, Throwable, γ$0$]], TestConfiguration, TestSuite, Suite, Serializable, Assertions, TripleEquals, TripleEqualsSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Spec3
  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 Spec3()(implicit arg0: distage.DefaultModule3[FR], tagBIO3: distage.TagK3[FR], tagBIO: distage.TagKK[[β$4$, γ$5$]FR[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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. macro def assert(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  12. macro def assert(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  13. macro def assertCompiles(code: String)(implicit pos: Position): Assertion
    Definition Classes
    Assertions
  14. macro def assertDoesNotCompile(code: String)(implicit pos: Position): Assertion
    Definition Classes
    Assertions
  15. def assertResult(expected: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  16. def assertResult(expected: Any, clue: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  17. def assertThrows[T <: AnyRef](f: => Any)(implicit classTag: ClassTag[T], pos: Position): Assertion
    Definition Classes
    Assertions
  18. macro def assertTypeError(code: String)(implicit pos: Position): Assertion
    Definition Classes
    Assertions
  19. macro def assume(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  20. macro def assume(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  21. def cancel(cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  22. def cancel(message: String, cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  23. def cancel(message: String)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  24. def cancel()(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  25. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  26. def config: model.TestConfig
    Attributes
    protected
    Definition Classes
    Spec3DistageAbstractScalatestSpecTestConfiguration
  27. def convertEquivalenceToAToBConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: <:<[A, B]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  28. def convertEquivalenceToBToAConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: <:<[B, A]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  29. def convertToCheckingEqualizer[T](left: T): CheckingEqualizer[T]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  30. implicit def convertToEqualizer[T](left: T): Equalizer[T]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  31. implicit def convertToStringCanWrapper(o: String)(implicit position: Position): StringCanWrapperForVerb
    Definition Classes
    CanVerb
  32. implicit def convertToStringMustWrapperForVerb(o: String)(implicit position: Position): StringMustWrapperForVerb
    Definition Classes
    MustVerb
  33. implicit def convertToStringShouldWrapperForVerb(o: String)(implicit position: Position): StringShouldWrapperForVerb
    Definition Classes
    ShouldVerb
  34. implicit def convertToWordSpecStringWrapperDS3(s: String): DSWordSpecStringWrapper3[FR]
    Attributes
    protected
  35. def defaultEquality[A]: Equality[A]
    Definition Classes
    TripleEqualsSupport
  36. implicit val defaultModulesIO: DefaultModule[[γ$0$]FR[Any, Throwable, γ$0$]]
  37. def distageSuiteId: SuiteId
    Attributes
    protected[this]
    Definition Classes
    DistageAbstractScalatestSpec
  38. def distageSuiteName: String
    Attributes
    protected[this]
    Definition Classes
    DistageAbstractScalatestSpec
  39. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  41. final def execute(testName: String, configMap: ConfigMap, color: Boolean, durations: Boolean, shortstacks: Boolean, fullstacks: Boolean, stats: Boolean): Unit
    Definition Classes
    Suite
  42. def expectedTestCount(filter: Filter): Int
    Definition Classes
    DistageScalatestTestSuiteRunner → Suite
  43. def fail(cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  44. def fail(message: String, cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  45. def fail(message: String)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  46. def fail()(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  47. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  48. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  49. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  50. def intercept[T <: AnyRef](f: => Any)(implicit classTag: ClassTag[T], pos: Position): T
    Definition Classes
    Assertions
  51. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  52. def loadRoles(): RolesInfo
    Attributes
    protected
    Definition Classes
    DistageTestEnv
  53. def lowPriorityTypeCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], ev: <:<[A, B]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  54. def makeMergeStrategy(): PluginMergeStrategy
    Attributes
    protected
    Definition Classes
    DistageTestEnv
  55. def makePluginloader(): distage.plugins.PluginLoader
    Attributes
    protected
    Definition Classes
    DistageTestEnv
  56. def makeTestEnv(): TestEnvironment
    Attributes
    protected[this]
    Definition Classes
    DistageAbstractScalatestSpec
  57. 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)

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

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

Inherited from DistageTestEnv

Inherited from CanVerb

Inherited from MustVerb

Inherited from ShouldVerb

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

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

Inherited from TestRegistration[[γ$0$]FR[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