Skip to main content
Version: 2.x

Ignoring Tests

To ignore running a test, we can use the ignore test aspect:

import zio._
import zio.test.{test, _}

test("an ignored test") {
assertTrue(false)
} @@ TestAspect.ignore

To fail all ignored tests, we can use the success test aspect:

import zio._
import zio.test.{test, _}

suite("sample tests")(
test("an ignored test") {
assertTrue(false)
} @@ TestAspect.ignore,
test("another ignored test") {
assertTrue(true)
} @@ TestAspect.ignore
) @@ TestAspect.success

ZIO Chat

๐ŸŽ‰ Hey there, ZIO aficionado! ๐ŸŽ‰ Step into the ZIO wonderland with me as your guide. Whether you're a functional fanatic or just dipping your toes into the ZIO ecosystem, I'm here to make your journey smooth. Got ZIO questions? I've got answers! Let's navigate the ZIO universe together and unlock its infinite possibilities!