Packages

c

zio.test

DefaultMutableRunnableSpec

class DefaultMutableRunnableSpec extends MutableRunnableSpec[Any]

Syntax for writing test like

object MySpec extends DefaultMutableRunnableSpec {
  suite("foo") {
    test("name") {
    } @@ ignore

    test("name 2")
  }
  suite("another suite") {
    test("name 3")
  }
}
Annotations
@deprecated
Deprecated

(Since version 2.0.0) use DefaultRunnableSpec

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultMutableRunnableSpec
  2. MutableRunnableSpec
  3. RunnableSpec
  4. AbstractRunnableSpec
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DefaultMutableRunnableSpec()

Type Members

  1. type Environment = TestEnvironment
    Definition Classes
    RunnableSpecAbstractRunnableSpec
  2. type Failure = Any
    Definition Classes
    RunnableSpecAbstractRunnableSpec
  3. sealed trait SpecBuilder extends AnyRef
    Definition Classes
    MutableRunnableSpec
  4. sealed case class SuiteBuilder(label: String) extends SpecBuilder with Product with Serializable
    Definition Classes
    MutableRunnableSpec
  5. sealed case class TestBuilder(label: String, toSpec: ZSpec[R with TestEnvironment, Any]) extends SpecBuilder with Product with Serializable
    Definition Classes
    MutableRunnableSpec

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def aspects: List[TestAspectAtLeastR[TestEnvironment]]
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. 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.

    Definition Classes
    RunnableSpec
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def run(implicit trace: ZTraceElement): ZIO[ZEnv with ZIOAppArgs, Any, Any]

    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.

    Definition Classes
    AbstractRunnableSpec
  18. def runner: TestRunner[TestEnvironment, Any]
  19. final def runtimeConfig: RuntimeConfig

    The runtime configuration used by the runner.

    The runtime configuration used by the runner.

    Definition Classes
    AbstractRunnableSpec
  20. final def spec: ZSpec[Environment, Failure]
  21. 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.

    Definition Classes
    MutableRunnableSpec
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. final def test[In](label: String)(assertion: ⇒ In)(implicit testConstructor: TestConstructor[TestEnvironment, In], trace: ZTraceElement): TestBuilder

    Builds a spec with a single test.

    Builds a spec with a single test.

    Definition Classes
    MutableRunnableSpec
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Deprecated Value Members

  1. final def platform: RuntimeConfig

    the platform used by the runner

    the platform used by the runner

    Definition Classes
    AbstractRunnableSpec
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runtimeConfig

  2. final def testM(label: String)(assertion: ⇒ ZIO[TestEnvironment, Failure, TestResult])(implicit trace: ZTraceElement): TestBuilder

    Builds a spec with a single effectful test.

    Builds a spec with a single effectful test.

    Definition Classes
    MutableRunnableSpec
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use test

Inherited from MutableRunnableSpec[Any]

Inherited from RunnableSpec[TestEnvironment, Any]

Inherited from AbstractRunnableSpec

Inherited from AnyRef

Inherited from Any

Ungrouped