All Downloads are FREE. Search and download functionalities are using the official Maven repository.

harness.zio.test.DefaultHarnessSpec.scala Maven / Gradle / Ivy

There is a newer version: 5.1.3
Show newest version
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