Skip to main content
Version: 2.0.x

Installing ZIO Test

In order to use ZIO Test, we need to add the required configuration in our SBT settings:

libraryDependencies ++= Seq(
"dev.zio" %% "zio-test" % "2.1.0-RC2" % Test,
"dev.zio" %% "zio-test-sbt" % "2.1.0-RC2" % Test,
"dev.zio" %% "zio-test-magnolia" % "2.1.0-RC2" % Test
)

If our SBT version is older than 1.8.0, we also need to add the test framework manually:

testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework")