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] }
- Alphabetic
- By Inheritance
- Spec3
- DistageAbstractScalatestSpec
- WithSingletonTestRegistration
- DistageTestEnv
- CanVerb
- MustVerb
- ShouldVerb
- DistageScalatestTestSuiteRunner
- AbstractDistageSpec
- TestRegistration
- TestConfiguration
- TestSuite
- Suite
- Serializable
- Assertions
- TripleEquals
- TripleEqualsSupport
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Spec3()(implicit arg0: distage.DefaultModule3[FR], tagBIO3: distage.TagK3[FR], tagBIO: distage.TagKK[[β$4$, γ$5$]FR[Any, β$4$, γ$5$]])
Type Members
- class CheckingEqualizer[L] extends AnyRef
- Definition Classes
- TripleEqualsSupport
- class Equalizer[L] extends AnyRef
- Definition Classes
- TripleEqualsSupport
- trait NoArgTest extends () => Outcome with TestData
- Attributes
- protected
- Definition Classes
- TestSuite
- trait StringCanWrapperForVerb extends AnyRef
- Definition Classes
- CanVerb
- trait StringMustWrapperForVerb extends AnyRef
- Definition Classes
- MustVerb
- trait StringShouldWrapperForVerb extends AnyRef
- Definition Classes
- ShouldVerb
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def !==[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]
- Definition Classes
- TripleEqualsSupport
- def !==(right: Null): TripleEqualsInvocation[Null]
- Definition Classes
- TripleEqualsSupport
- def !==[T](right: T): TripleEqualsInvocation[T]
- Definition Classes
- TripleEqualsSupport
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ===[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]
- Definition Classes
- TripleEqualsSupport
- def ===(right: Null): TripleEqualsInvocation[Null]
- Definition Classes
- TripleEqualsSupport
- def ===[T](right: T): TripleEqualsInvocation[T]
- Definition Classes
- TripleEqualsSupport
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- macro def assert(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
- Definition Classes
- Assertions
- macro def assert(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion
- Definition Classes
- Assertions
- macro def assertCompiles(code: String)(implicit pos: Position): Assertion
- Definition Classes
- Assertions
- macro def assertDoesNotCompile(code: String)(implicit pos: Position): Assertion
- Definition Classes
- Assertions
- def assertResult(expected: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
- Definition Classes
- Assertions
- def assertResult(expected: Any, clue: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
- Definition Classes
- Assertions
- def assertThrows[T <: AnyRef](f: => Any)(implicit classTag: ClassTag[T], pos: Position): Assertion
- Definition Classes
- Assertions
- macro def assertTypeError(code: String)(implicit pos: Position): Assertion
- Definition Classes
- Assertions
- macro def assume(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
- Definition Classes
- Assertions
- macro def assume(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion
- Definition Classes
- Assertions
- def cancel(cause: Throwable)(implicit pos: Position): Nothing
- Definition Classes
- Assertions
- def cancel(message: String, cause: Throwable)(implicit pos: Position): Nothing
- Definition Classes
- Assertions
- def cancel(message: String)(implicit pos: Position): Nothing
- Definition Classes
- Assertions
- def cancel()(implicit pos: Position): Nothing
- Definition Classes
- Assertions
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def config: model.TestConfig
- Attributes
- protected
- Definition Classes
- Spec3 → DistageAbstractScalatestSpec → TestConfiguration
- def convertEquivalenceToAToBConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: <:<[A, B]): CanEqual[A, B]
- Definition Classes
- TripleEquals → TripleEqualsSupport
- def convertEquivalenceToBToAConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: <:<[B, A]): CanEqual[A, B]
- Definition Classes
- TripleEquals → TripleEqualsSupport
- def convertToCheckingEqualizer[T](left: T): CheckingEqualizer[T]
- Definition Classes
- TripleEquals → TripleEqualsSupport
- implicit def convertToEqualizer[T](left: T): Equalizer[T]
- Definition Classes
- TripleEquals → TripleEqualsSupport
- implicit def convertToStringCanWrapper(o: String)(implicit position: Position): StringCanWrapperForVerb
- Definition Classes
- CanVerb
- implicit def convertToStringMustWrapperForVerb(o: String)(implicit position: Position): StringMustWrapperForVerb
- Definition Classes
- MustVerb
- implicit def convertToStringShouldWrapperForVerb(o: String)(implicit position: Position): StringShouldWrapperForVerb
- Definition Classes
- ShouldVerb
- implicit def convertToWordSpecStringWrapperDS3(s: String): DSWordSpecStringWrapper3[FR]
- Attributes
- protected
- def defaultEquality[A]: Equality[A]
- Definition Classes
- TripleEqualsSupport
- implicit val defaultModulesIO: DefaultModule[[γ$0$]FR[Any, Throwable, γ$0$]]
- Definition Classes
- DistageScalatestTestSuiteRunner → AbstractDistageSpec
- def distageSuiteId: SuiteId
- Attributes
- protected[this]
- Definition Classes
- DistageAbstractScalatestSpec
- def distageSuiteName: String
- Attributes
- protected[this]
- Definition Classes
- DistageAbstractScalatestSpec
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def execute(testName: String, configMap: ConfigMap, color: Boolean, durations: Boolean, shortstacks: Boolean, fullstacks: Boolean, stats: Boolean): Unit
- Definition Classes
- Suite
- def expectedTestCount(filter: Filter): Int
- Definition Classes
- DistageScalatestTestSuiteRunner → Suite
- def fail(cause: Throwable)(implicit pos: Position): Nothing
- Definition Classes
- Assertions
- def fail(message: String, cause: Throwable)(implicit pos: Position): Nothing
- Definition Classes
- Assertions
- def fail(message: String)(implicit pos: Position): Nothing
- Definition Classes
- Assertions
- def fail()(implicit pos: Position): Nothing
- Definition Classes
- Assertions
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def intercept[T <: AnyRef](f: => Any)(implicit classTag: ClassTag[T], pos: Position): T
- Definition Classes
- Assertions
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def loadRoles(): RolesInfo
- Attributes
- protected
- Definition Classes
- DistageTestEnv
- def lowPriorityTypeCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], ev: <:<[A, B]): CanEqual[A, B]
- Definition Classes
- TripleEquals → TripleEqualsSupport
- def makeMergeStrategy(): PluginMergeStrategy
- Attributes
- protected
- Definition Classes
- DistageTestEnv
- def makePluginloader(): distage.plugins.PluginLoader
- Attributes
- protected
- Definition Classes
- DistageTestEnv
- def makeTestEnv(): TestEnvironment
- Attributes
- protected[this]
- Definition Classes
- DistageAbstractScalatestSpec
- 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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nestedSuites: IndexedSeq[Suite]
- Definition Classes
- Suite
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def pending: Assertion with PendingStatement
- Definition Classes
- Assertions
- def pendingUntilFixed(f: => Unit)(implicit pos: Position): Assertion with PendingStatement
- Definition Classes
- Assertions
- def registerBranch(description: String, verb: String, fun: () => Unit): Unit
- Attributes
- protected[this]
- Definition Classes
- DistageAbstractScalatestSpec
- def registerTest[A](function: Functoid[FR[Any, Throwable, A]], env: TestEnvironment, pos: SourceFilePosition, id: TestId, meta: SuiteMeta): Unit
- Definition Classes
- WithSingletonTestRegistration → TestRegistration
- def rerunner: Option[String]
- Definition Classes
- Suite
- def run(testName: Option[String], args: Args): Status
- Definition Classes
- DistageScalatestTestSuiteRunner → Suite
- final def runNestedSuites(args: Args): Status
- Attributes
- protected
- Definition Classes
- DistageScalatestTestSuiteRunner → Suite
- final def runTest(testName: String, args: Args): Status
- Attributes
- protected
- Definition Classes
- DistageScalatestTestSuiteRunner → TestSuite → Suite
- final def runTests(testName: Option[String], args: Args): Status
- Attributes
- protected
- Definition Classes
- DistageScalatestTestSuiteRunner → Suite
- implicit val subjectRegistrationFunction1: StringVerbBlockRegistration
- Attributes
- protected
- Definition Classes
- DistageAbstractScalatestSpec
- final val succeed: Assertion
- Definition Classes
- Assertions
- def suiteId: String
- Definition Classes
- Suite
- def suiteName: String
- Definition Classes
- Suite
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- implicit val tagBIO: distage.TagKK[[β$2$, γ$3$]FR[Any, β$2$, γ$3$]]
- implicit val tagBIO3: distage.TagK3[FR]
- implicit val tagMonoIO: distage.TagK[[γ$0$]FR[Any, Throwable, γ$0$]]
- Definition Classes
- DistageScalatestTestSuiteRunner → AbstractDistageSpec
- def tags: Map[String, Set[String]]
- Definition Classes
- DistageScalatestTestSuiteRunner → Suite
- def testDataFor(testName: String, theConfigMap: ConfigMap): TestData
- Definition Classes
- DistageScalatestTestSuiteRunner → Suite
- final lazy val testEnv: TestEnvironment
- Attributes
- protected[this]
- Definition Classes
- DistageAbstractScalatestSpec
- def testNames: Set[String]
- Definition Classes
- DistageScalatestTestSuiteRunner → Suite
- def toString(): String
- Definition Classes
- AnyRef → Any
- def typeCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], ev: <:<[B, A]): CanEqual[A, B]
- Definition Classes
- TripleEquals → TripleEqualsSupport
- implicit def unconstrainedEquality[A, B](implicit equalityOfA: Equality[A]): CanEqual[A, B]
- Definition Classes
- TripleEquals → TripleEqualsSupport
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withClue[T](clue: Any)(fun: => T): T
- Definition Classes
- Assertions
- def withFixture(test: NoArgTest): Outcome
- Attributes
- protected
- Definition Classes
- DistageScalatestTestSuiteRunner → TestSuite
- final def withWhitelistJarsOnly: (ClassGraph) => ClassGraph
- Attributes
- protected
- Definition Classes
- DistageScalatestTestSuiteRunner
Deprecated Value Members
- 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.
- 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.
- 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.
- 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.
- 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.