Testkit

TODO

Sorry, this page is not ready yet

distage sample project features several examples of testkit usage.

High-level syntax example of distage-testkit for scalatest:

class DistageTestExampleBIO extends DistageBIOSpecScalatest[ZIO] {

  "distage test runner" should {
    "support bifunctor" in {
      service: MockUserRepository[ZIO[Throwable, ?]] =>
        for {
          _ <- ZIO(assert(service != null))
        } yield ()
    }
  }

}

Basics

Testkit and Role-Based Applications