TestkitRunnerModule

izumi.distage.testkit.runner.TestkitRunnerModule
See theTestkitRunnerModule companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def run[F[_] : TagK : QuasiIO : QuasiAsync](reporter: TestReporter, isTestCancellation: Throwable => Boolean, tests: Seq[DistageTest[AnyF]], runnerOverrides: List[ModuleBase]): F[List[EnvResult]]

Run tests in Any effect into F effect, where F is usually Identity

Run tests in Any effect into F effect, where F is usually Identity

If F is incapable of async (e.g. Identity), tests will run via F's equivalent of unsafePerformIO and will block the running thread. Test parallelism in Identity is achieved via thread pools, which is probably OK for tests.

Value parameters

isTestCancellation

Predicate for determining whether a thrown exception signifies a canceled, not failed, test. e.g. For ScalaTest it's _.isInstanceOf[org.scalatest.exceptions.TestCanceledException]

Attributes

Note

a DistageTest[G] will be run using QuasiIORunner[G] assembled from bindings in DistageTest.environment (Most likely the QuasIORunner binding will be found in izumi.distage.testkit.model.TestEnvironment.defaultModule, as DefaultModule instances must provide a QuasiIORunner)