Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
538 views
in Technique[技术] by (71.8m points)

scala - Cannot find ScalaCheckDrivenPropertyChecks

I upgraded my test dependencies for my play project and now I get this problem:

object scalacheck is not a member of package org.scalatestplus
[error] import org.scalatestplus.scalacheck.ScalaCheckDrivenPropertyChecks

These are my test dependencies:

"org.scalatest"              %% "scalatest"                 % "3.2.3"          % Test,
"org.scalamock"              %% "scalamock"                 % "4.2.0"          % "test",
"com.github.alexarchambault" %% "scalacheck-shapeless_1.14" % "1.2.1"          % "test",
"org.scalatestplus.play"     %% "scalatestplus-play"        % "3.1.2"          % "test, it",

Do I have some incompatible versioning going on here?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You don't have the right dependency:

"org.scalatestplus" %% "scalacheck-1-15" % "3.2.3.0"

Since you are using scalatest version 3.2.3, you should use scalacheck version 3.2.3.X, for compatability.

Here is its maven location, and this is its github repo.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
...