final
class
ZTestFramework extends Framework
Instance Constructors
-
new
ZTestFramework()
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
def
finalize(): Unit
-
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
val
name: String
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
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:TestExecutor
and passes spec to itzio.test.TestExecutor
Capable of executing specs that require an environment
R
and may fail with anE
Recursively traverses tree of specs, executing suites/tests in parallelzio.test.TestRunner
Encapsulates the logic necessary to run specs that require an environment
R
and may fail with an errorE
.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 testzio.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 singleZTestTask
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