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] }
- Alphabetic
- By Inheritance
- SpecZIO
- 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 SpecZIO()(implicit defaultModule3: distage.DefaultModule3[ZIO], tagBIO3: distage.TagK3[ZIO], tagBIO: distage.TagKK[[β$4$, γ$5$]ZIO[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
- def _sbtFindCurrentTestModuleClasspathElement(classpathElems: Seq[String]): Option[String]
Override this to change the method for finding the
test-classes
directory for _sbtIsClassDefinedInCurrentTestModuleOverride this to change the method for finding the
test-classes
directory for _sbtIsClassDefinedInCurrentTestModule- Attributes
- protected
- Definition Classes
- DistageScalatestTestSuiteRunner
- 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
- 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
- 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
- SpecZIO → 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): DSWordSpecStringWrapperZIO
- Attributes
- protected
- def defaultEquality[A]: Equality[A]
- Definition Classes
- TripleEqualsSupport
- implicit val defaultModule3: distage.DefaultModule3[ZIO]
- implicit val defaultModulesIO: DefaultModule[[γ$0$]ZIO[Any, Throwable, γ$0$]]
- Definition Classes
- DistageScalatestTestSuiteRunner → AbstractDistageSpec
- def distageSuiteId: SuiteId
- Attributes
- protected
- Definition Classes
- DistageAbstractScalatestSpec
- def distageSuiteName: String
- Attributes
- protected
- 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
- 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
- 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)
- 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
- Definition Classes
- DistageAbstractScalatestSpec
- def registerTest[A](function: Functoid[ZIO[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$]ZIO[Any, β$2$, γ$3$]]
- implicit val tagBIO3: distage.TagK3[ZIO]
- implicit val tagMonoIO: distage.TagK[[γ$0$]ZIO[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
- 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.