MutableRunnableSpec

class MutableRunnableSpec[R <: Has[_]](layer: ZLayer[TestEnvironment, Throwable, R], aspect: TestAspect[R & TestEnvironment, R & TestEnvironment, Any, Any])(implicit evidence$1: Tag[R]) extends RunnableSpec[TestEnvironment, Any]

Syntax for writing test like

object MySpec extends MutableRunnableSpec(layer, aspect) {
 suite("foo") {
   testM("name") {
   } @@ ignore

   test("name 2")
 }
 suite("another suite") {
   test("name 3")
 }
}
class RunnableSpec[TestEnvironment, Any]
class Object
trait Matchable
class Any

Type members

Classlikes

sealed trait SpecBuilder
sealed case class SuiteBuilder(label: String) extends SpecBuilder
sealed case class TestBuilder(label: String, var toSpec: ZSpec[R & TestEnvironment, Any]) extends SpecBuilder

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
final override def spec: ZSpec[Environment, Failure]
Definition Classes
final def suite(label: String)(specs: => SpecBuilder): SuiteBuilder

Builds a suite containing a number of other specs.

Builds a suite containing a number of other specs.

final def test(label: String)(assertion: => TestResult)(implicit loc: SourceLocation): TestBuilder

Builds a spec with a single pure test.

Builds a spec with a single pure test.

final def testM(label: String)(assertion: => ZIO[R & TestEnvironment, Failure, TestResult])(implicit loc: SourceLocation): TestBuilder

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