Skip to content

Commit

Permalink
Replace GeneratorDrivenPropertyChecks with ScalableCheckDrivenPropert…
Browse files Browse the repository at this point in the history
…yChecks
  • Loading branch information
tototoshi committed Feb 19, 2021
1 parent 7ae113c commit 7be747b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ lazy val core =
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.slf4j" % "slf4j-api" % "1.7.30",
"org.typelevel" %% "cats-effect" % "3.0.0-RC2",
"org.scalatest" %% "scalatest" % "3.2.4" % Test,
"org.scalacheck" %% "scalacheck" % "1.15.3" % Test
scalatest,
scalacheck
),
coverageMinimum := 60,
coverageFailOnMinimum := true
Expand Down Expand Up @@ -88,7 +88,8 @@ lazy val circe = createModule("circe")
"io.circe" %% "circe-core" % "0.13.0",
"io.circe" %% "circe-parser" % "0.13.0",
"io.circe" %% "circe-generic" % "0.13.0" % Test,
scalacheck
scalacheck,
scalatestplus
),
coverageMinimum := 80,
coverageFailOnMinimum := true
Expand Down Expand Up @@ -146,6 +147,8 @@ lazy val scalatest = "org.scalatest" %% "scalatest" % "3.2.4" % Test

lazy val scalacheck = "org.scalacheck" %% "scalacheck" % "1.15.3" % Test

lazy val scalatestplus = "org.scalatestplus" %% "scalacheck-1-15" % "3.2.4.0" % Test

lazy val commonSettings =
mavenSettings ++
Seq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package scalacache.serialization

import io.circe.Json
import org.scalacheck.Arbitrary
import org.scalatest.prop.GeneratorDrivenPropertyChecks
import io.circe.syntax._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import org.scalatestplus.scalacheck.ScalaCheckDrivenPropertyChecks

case class Fruit(name: String, tastinessQuotient: Double)

class CirceCodecSpec extends AnyFlatSpec with Matchers with GeneratorDrivenPropertyChecks {
class CirceCodecSpec extends AnyFlatSpec with Matchers with ScalaCheckDrivenPropertyChecks {

behavior of "JSON serialization using circe"

Expand Down

0 comments on commit 7be747b

Please sign in to comment.