class MutableRunnableSpec[R <: Has[_]] extends RunnableSpec[test.environment.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") } }
- Self Type
- MutableRunnableSpec[R]
- Alphabetic
- By Inheritance
- MutableRunnableSpec
- RunnableSpec
- AbstractRunnableSpec
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MutableRunnableSpec(layer: ZLayer[environment.TestEnvironment, Throwable, R], aspect: TestAspect[R with environment.TestEnvironment, R with environment.TestEnvironment, Any, Any] = TestAspect.identity)(implicit arg0: izumi.reflect.Tag[R])
Type Members
-
type
Environment = environment.TestEnvironment
- Definition Classes
- RunnableSpec → AbstractRunnableSpec
-
type
Failure = Any
- Definition Classes
- RunnableSpec → AbstractRunnableSpec
- sealed trait SpecBuilder extends AnyRef
- sealed case class SuiteBuilder(label: String) extends SpecBuilder with Product with Serializable
- sealed case class TestBuilder(label: String, toSpec: ZSpec[R with environment.TestEnvironment, Any]) extends SpecBuilder with Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
aspects: List[TestAspect[Nothing, environment.TestEnvironment, Nothing, Any]]
- Definition Classes
- MutableRunnableSpec → AbstractRunnableSpec
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
platform: Platform
the platform used by the runner
the platform used by the runner
- Definition Classes
- AbstractRunnableSpec
-
final
def
run: URIO[TestLogger with Clock, ExecutedSpec[Failure]]
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
-
def
runner: TestRunner[environment.TestEnvironment, Any]
- Definition Classes
- MutableRunnableSpec → AbstractRunnableSpec
-
final
def
spec: ZSpec[Environment, Failure]
- Definition Classes
- MutableRunnableSpec → AbstractRunnableSpec
-
final
def
suite(label: String)(specs: ⇒ SpecBuilder): SuiteBuilder
Builds a suite containing a number of other specs.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
test(label: String)(assertion: ⇒ TestResult)(implicit loc: SourceLocation): TestBuilder
Builds a spec with a single pure test.
-
final
def
testM(label: String)(assertion: ⇒ ZIO[R with environment.TestEnvironment, Failure, TestResult])(implicit loc: SourceLocation): TestBuilder
Builds a spec with a single effectful test.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()