zio.test.sbt

package zio.test.sbt

Members list

Type members

Classlikes

abstract class BaseTestTask[T](taskDef0: TaskDef, val testClassLoader: ClassLoader, val sendSummary: SendSummary, val args: TestArgs, val spec: ZIOSpecAbstract, val runtime: Runtime[T], val console: Console) extends Task

Attributes

Supertypes
trait Task
class Object
trait Matchable
class Any
Known subtypes
class ZTestTask[T]
object SendSummary

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
final case class ZTestEvent(fullyQualifiedName0: String, selector0: Selector, status0: Status, maybeThrowable: Option[Throwable], duration0: Long, fingerprint0: Fingerprint) extends Event

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Event
class Object
trait Matchable
class Any
Show all
object ZTestEvent

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
ZTestEvent.type
class ZTestEventHandlerSbt(eventHandler: EventHandler, taskDef: TaskDef, renderer: TestRenderer) extends ZTestEventHandler

Reports test results to SBT, ensuring that the test task fails if any ZIO test instances fail

Reports test results to SBT, ensuring that the test task fails if any ZIO test instances fail

Value parameters

eventHandler

The underlying handler provided by SBT

taskDef

The test task that we are reporting for

Attributes

Supertypes
class Object
trait Matchable
class Any
final class ZTestFramework extends Framework

=General Test Pieces=

=General Test Pieces=

zio.test.ZIOSpecAbstract

Contains test logic and how it should be executed. The most important method is:

runSpec is the most significant method in this class. It:

  • Interacts with the Runtime
  • Builds TestRunner
  • Folds aspects into logic
  • Builds TestExecutor and passes spec to it
  • Returns summary

zio.test.TestExecutor

Capable of executing specs that require an environment R and may fail with an E Recursively traverses tree of specs, executing suites/tests in parallel

zio.test.TestRunner

Encapsulates the logic necessary to run specs that require an environment R and may fail with an error E.

==SBT-specific pieces==

sbt.testing.Task

SBT needs everything packaged in these to run tests/suites

zio.test.sbt.ZTestTask extends Task

Contains a ZIOSpecAbstract and everything that SBT needs to run/report it.

sbt.testing.Runner

SBT delegates to Runner clients for managing/executing test

zio.test.sbt.ZioSpecFingerprint What SBT needs to find your tests. Finds ZIOSpecAbstract implementations in your codebase.

zio.test.sbt.ZTestRunnerJVM extends sbt.testing.Runner

Receives all Specs found by the FingerPrint and merges them into a single ZTestTask

sbt.testing.Framework We need to implement this for SBT to recognize ZIO-test as a legitimate test framework.

zio.test.sbt.ZTestFramework extends sbt.testing.Framework Defines ZIOSpecFingerPrint & ZTestRunner and passes them to SBT

Attributes

Supertypes
trait Framework
class Object
trait Matchable
class Any
final class ZTestRunnerJVM(val args: Array[String], val remoteArgs: Array[String], testClassLoader: ClassLoader) extends Runner

Attributes

Supertypes
trait Runner
class Object
trait Matchable
class Any
final class ZTestTask[T](taskDef: TaskDef, testClassLoader: ClassLoader, sendSummary: SendSummary, testArgs: TestArgs, spec: ZIOSpecAbstract, runtime: Runtime[T], console: Console) extends BaseTestTask[T]

Attributes

Companion
object
Supertypes
class BaseTestTask[T]
trait Task
class Object
trait Matchable
class Any
object ZTestTask

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
ZTestTask.type

Attributes

Supertypes
trait Fingerprint
class Object
trait Matchable
class Any
Self type

Types