harness.zio.test.DefaultHarnessSpec.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of harness-zio-test_3 Show documentation
Show all versions of harness-zio-test_3 Show documentation
Miscellaneous libraries/utilities for Scala.
package harness.zio.test
import harness.zio.*
import zio.*
import zio.test.*
abstract class DefaultHarnessSpec extends HarnessSpec[Any] {
override final val layer: ULayer[Any] = ZLayer.empty
}
object DefaultHarnessSpec {
abstract class ForContract[R: EnvironmentTag](name: String, contract: Contract[R])(_layer: ZLayer[HarnessEnv & Scope, Any, R]) extends DefaultHarnessSpec {
override final def spec: TestSpec = suite(name)(contract.contract).provideSomeLayer[HarnessEnv & TestEnvironment & Scope](_layer)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy