ScalatestAbstractDistageSpec

izumi.distage.testkit.services.scalatest.dstest.ScalatestAbstractDistageSpec
See theScalatestAbstractDistageSpec companion object
trait ScalatestAbstractDistageSpec[F[_]] extends AbstractDistageSpec[F], ShouldVerb, MustVerb, CanVerb, DistageTestEnv, WithTestRegistration[F]

Attributes

Companion
object
Graph
Supertypes
trait CanVerb
trait MustVerb
trait ShouldVerb
trait TestRegistration[F]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait For1[F]
class Spec1[F]
class SpecIdentity
class SpecWiring[F, AppMain, Cfg]
trait For2[F]
class Spec2[F]
trait ForZIO
class SpecZIO
Show all

Members list

Value members

Inherited methods

def convertToStringCanWrapper(o: String)(using position: Position): StringCanWrapperForVerb

Converts an object of type String to a StringCanWrapper, to enable can methods to be invokable on that object.

Converts an object of type String to a StringCanWrapper, to enable can methods to be invokable on that object.

Attributes

Inherited from:
CanVerb
override def registerTest[A](function: Functoid[F[A]], env: TestEnvironment, pos: SourceFilePosition, id: TestId, meta: SuiteMeta): Unit

Attributes

Definition Classes
Inherited from:
WithTestRegistration
override def registeredTests(): List[DistageTest[F]]

Attributes

Definition Classes
Inherited from:
WithTestRegistration

Extensions

Inherited extensions

extension (o: String)(using position: Position)
def can(resultOfAfterWordApplication: ResultOfAfterWordApplication)(using swawr: SubjectWithAfterWordRegistration): Unit

Extension method to support the registration of subject descriptions with after words in WordSpec and fixture.WordSpec.

Extension method to support the registration of subject descriptions with after words in WordSpec and fixture.WordSpec.

For example, this method enables syntax such as the following in WordSpec and fixture.WordSpec:

  def provide = afterWord("provide")

 "The ScalaTest Matchers DSL" can provide {
                              ^

WordSpec passes in a function via the implicit parameter that takes two strings and a ResultOfAfterWordApplication and results in Unit. This method simply invokes this function, passing in leftSideString, the verb string "can", and the ResultOfAfterWordApplication passed to can.

Attributes

Inherited from:
CanVerb
def can(right: => Unit)(using fun: StringVerbBlockRegistration): Unit

Extension method to support the registration of subject descriptions in WordSpec and fixture.WordSpec.

Extension method to support the registration of subject descriptions in WordSpec and fixture.WordSpec.

For example, this method enables syntax such as the following in WordSpec and fixture.WordSpec:

"A Stack (when empty)" can { ...
                      ^

WordSpec passes in a function via the implicit parameter of type StringVerbBlockRegistration, a function that takes two strings and a no-arg function and results in Unit. This method simply invokes this function, passing in leftSideString, the verb string "can", and the right by-name parameter transformed into a no-arg function.

Attributes

Inherited from:
CanVerb
def can(right: BehaveWord)(using svbli: StringVerbBehaveLikeInvocation): BehaveWord

Extension method to support shared test registration in FlatSpec and fixture.FlatSpec.

Extension method to support shared test registration in FlatSpec and fixture.FlatSpec.

For example, this method enables syntax such as the following in FlatSpec and fixture.FlatSpec:

"A Stack (with one item)" can behave like nonEmptyStack(stackWithOneItem, lastValuePushed)
                         ^

FlatSpec and fixture.FlatSpec passes in a function via the implicit parameter that takes a string and results in a BehaveWord. This method simply invokes this function, passing in leftSideString, and returns the result.

Attributes

Inherited from:
CanVerb
def can(right: String)(using svsi: StringVerbStringInvocation): ResultOfStringPassedToVerb

Extension method to support test registration in FlatSpec and fixture.FlatSpec.

Extension method to support test registration in FlatSpec and fixture.FlatSpec.

For example, this method enables syntax such as the following in FlatSpec and fixture.FlatSpec:

"A Stack (when empty)" can "be empty" in { ... }
                      ^

FlatSpec passes in a function via the implicit parameter that takes three strings and results in a ResultOfStringPassedToVerb. This method simply invokes this function, passing in leftSideString, the verb string "can", and right, and returns the result.

Attributes

Inherited from:
CanVerb

Implicits

Inherited implicits

implicit def convertToStringMustWrapperForVerb(o: String)(implicit position: Position): StringMustWrapperForVerb

Implicitly converts an object of type String to a StringMustWrapper, to enable must methods to be invokable on that object.

Implicitly converts an object of type String to a StringMustWrapper, to enable must methods to be invokable on that object.

Attributes

Inherited from:
MustVerb
implicit def convertToStringShouldWrapperForVerb(o: String)(implicit position: Position): StringShouldWrapperForVerb

Implicitly converts an object of type String to a StringShouldWrapperForVerb, to enable should methods to be invokable on that object.

Implicitly converts an object of type String to a StringShouldWrapperForVerb, to enable should methods to be invokable on that object.

Attributes

Inherited from:
ShouldVerb

Inherited and Abstract implicits

implicit def defaultModulesIO: DefaultModule[F]

Attributes

Inherited from:
AbstractDistageSpec
implicit def tagMonoIO: Tag[F]

Attributes

Inherited from:
AbstractDistageSpec