zio.test.scalacheck

Provides functionality for converting legacy ScalaCheck generators to ZIO Test generators to support upgrading to ZIO Test without having to reimplement existing generators. To use it import this module and then call toGenZIO on any existing ScalaCheck generator. For example:

import org.scalacheck.Arbitrary

import zio._
import zio.test._
import zio.test.scalacheck._

val anyInt: Gen[Any, Int] =
 Arbitrary.arbitrary[Int].toGenZIO

Attributes

Members list

Concise view

Type members

Classlikes

final implicit class ScalaCheckGenSyntax[A](self: Gen[A]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Implicits

Implicits

final implicit def ScalaCheckGenSyntax[A](self: Gen[A]): ScalaCheckGenSyntax[A]