package myers
Ordering
- Alphabetic
Visibility
- Public
- Protected
_ZIO Test_ is a featherweight testing library for effectful programs.
_ZIO Test_ is a featherweight testing library for effectful programs.
The library imagines every spec as an ordinary immutable value, providing tremendous potential for composition. Thanks to tight integration with ZIO, specs can use resources (including those requiring disposal), have well- defined linear and parallel semantics, and can benefit from a host of ZIO combinators.
import zio.test._ import zio.Clock.nanoTime object MyTest extends ZIOSpecDefault { def spec = suite("clock")( test("time is non-zero") { for { time <- Live.live(nanoTime) } yield assertTrue(time >= 0L) } ) }