DefaultRunnableSpec

abstract class DefaultRunnableSpec extends RunnableSpec[TestEnvironment, Any]

A default runnable spec that provides testable versions of all of the modules in ZIO (Clock, Random, etc).

class RunnableSpec[TestEnvironment, Any]
class Object
trait Matchable
class Any

Type members

Inherited types

override type Environment = R
Inherited from:
RunnableSpec
override type Failure = E
Inherited from:
RunnableSpec

Value members

Concrete methods

override def aspects: List[TestAspect[Nothing, TestEnvironment, Nothing, Any]]
Definition Classes
override def runner: TestRunner[TestEnvironment, Any]
Definition Classes
def suite[R, E, T](label: String)(specs: Spec[R, E, T]*): Spec[R, E, T]

Builds a suite containing a number of other specs.

Builds a suite containing a number of other specs.

def suiteM[R, E, T](label: String)(specs: ZIO[R, E, Iterable[Spec[R, E, T]]]): Spec[R, E, T]

Builds an effectual suite containing a number of other specs.

Builds an effectual suite containing a number of other specs.

def test(label: String)(assertion: => TestResult)(implicit loc: SourceLocation): ZSpec[Any, Nothing]

Builds a spec with a single pure test.

Builds a spec with a single pure test.

def testM[R, E](label: String)(assertion: => ZIO[R, E, TestResult])(implicit loc: SourceLocation): ZSpec[R, E]

Builds a spec with a single effectful test.

Builds a spec with a single effectful test.

Inherited methods

final def main(args: Array[String]): Unit

A simple main function that can be used to run the spec.

A simple main function that can be used to run the spec.

Inherited from:
RunnableSpec
final def platform: Platform

the platform used by the runner

the platform used by the runner

Inherited from:
AbstractRunnableSpec

Returns an effect that executes the spec, producing the results of the execution.

Returns an effect that executes the spec, producing the results of the execution.

Inherited from:
AbstractRunnableSpec