scalatest / scalatestplus-scalacheck

ScalaTest + ScalaCheck provides integration support between ScalaTest and ScalaCheck.

Version Matrix

ScalaTest Plus ScalaCheck

ScalaTest + ScalaCheck provides integration support between ScalaTest and ScalaCheck.

Usage

To use it for ScalaTest 3.2.8 and ScalaCheck 1.15.x:

SBT:

libraryDependencies += "org.scalatestplus" %% "scalacheck-1-15" % "3.2.8.0" % "test"

Maven:

<dependency>
  <groupId>org.scalatestplus</groupId>
  <artifactId>scalacheck-1-15_2.13</artifactId>
  <version>3.2.8.0</version>
  <scope>test</scope>
</dependency>

Publishing

Please use the following commands to publish to Sonatype:

$ sbt clean +publishSigned

Creating Scaladoc

  1. Run sbt doc:
> sbt doc
  1. Copy generated files in .jvm to main source:
> cp -r scalatestPlusScalaCheck/.jvm/target/scala-2.13/src_managed/main/org scalatestPlusScalaCheck/src/main/scala/
  1. Comment out source generators in build.sbt under sharedSettings and scalatestPlusScalaCheck's .jvmSettings .

  2. Syntax highlight the source:

> cd ../highlight-scaladoc
> ant highlight-in-place -Dsrcdir=../scalatestplus-scalacheck/scalatestPlusScalaCheck/src/main
  1. Rebuild the scaladoc::
> cd ../scalatestplus-scalacheck
> sbt scalatestPlusScalaCheckJVM/clean scalatestPlusScalaCheckJVM/doc
  1. Copy out the scaladoc and add ads section:
> cp -r scalatestPlusScalaCheck/.jvm/target/scala-2.13/api ../scalatest-doc
> cd ../scalatest-doc
> ../highlight-scaladoc/scripts/add_adbutler_scalatest.sh