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")
}
}
Type members
Classlikes
sealed case class TestBuilder(label: String, var toSpec: ZSpec[R & TestEnvironment, Any]) extends SpecBuilder
Inherited types
Value members
Concrete methods
Builds a suite containing a number of other specs.
Builds a suite containing a number of other specs.
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
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
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