Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace specs2 with munit #4216

Open
wants to merge 20 commits into
base: series/3.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,15 @@ ThisBuild / apiURL := Some(url("https://typelevel.org/cats-effect/api/3.x/"))

ThisBuild / autoAPIMappings := true

ThisBuild / Test / testOptions += Tests.Argument("+l")

val CatsVersion = "2.11.0"
val CatsMtlVersion = "1.3.1"
val Specs2Version = "4.20.5"
val ScalaCheckVersion = "1.17.1"
val DisciplineVersion = "1.4.0"
val CoopVersion = "1.2.0"
val MUnitVersion = "1.0.0-M11"
val MUnitScalaCheckVersion = "1.0.0-M11"
val DisciplineMUnitVersion = "2.0.0-M3"
djspiewak marked this conversation as resolved.
Show resolved Hide resolved

val MacrotaskExecutorVersion = "1.1.1"

Expand Down Expand Up @@ -394,8 +397,7 @@ lazy val kernel = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.settings(
name := "cats-effect-kernel",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % CatsVersion,
"org.specs2" %%% "specs2-core" % Specs2Version % Test
"org.typelevel" %%% "cats-core" % CatsVersion
),
mimaBinaryIssueFilters ++= Seq(
ProblemFilters.exclude[MissingClassProblem]("cats.effect.kernel.Ref$SyncRef"),
Expand Down Expand Up @@ -451,7 +453,7 @@ lazy val laws = crossProject(JSPlatform, JVMPlatform, NativePlatform)
name := "cats-effect-laws",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-laws" % CatsVersion,
"org.typelevel" %%% "discipline-specs2" % DisciplineVersion % Test)
"org.typelevel" %%% "discipline-munit" % DisciplineMUnitVersion % Test)
)

/**
Expand Down Expand Up @@ -907,7 +909,6 @@ lazy val testkit = crossProject(JSPlatform, JVMPlatform, NativePlatform)
name := "cats-effect-testkit",
libraryDependencies ++= Seq(
"org.scalacheck" %%% "scalacheck" % ScalaCheckVersion,
"org.specs2" %%% "specs2-core" % Specs2Version % Test
)
)

Expand All @@ -922,8 +923,9 @@ lazy val tests: CrossProject = crossProject(JSPlatform, JVMPlatform, NativePlatf
name := "cats-effect-tests",
libraryDependencies ++= Seq(
"org.scalacheck" %%% "scalacheck" % ScalaCheckVersion,
"org.specs2" %%% "specs2-scalacheck" % Specs2Version % Test,
"org.typelevel" %%% "discipline-specs2" % DisciplineVersion % Test,
"org.scalameta" %%% "munit" % MUnitVersion % Test,
"org.scalameta" %%% "munit-scalacheck" % MUnitScalaCheckVersion % Test,
"org.typelevel" %%% "discipline-munit" % DisciplineMUnitVersion % Test,
"org.typelevel" %%% "cats-kernel-laws" % CatsVersion % Test,
"org.typelevel" %%% "cats-mtl-laws" % CatsMtlVersion % Test
),
Expand All @@ -947,7 +949,7 @@ def configureIOAppTests(p: Project): Project =
p.enablePlugins(NoPublishPlugin, BuildInfoPlugin)
.settings(
Test / unmanagedSourceDirectories += (LocalRootProject / baseDirectory).value / "ioapp-tests" / "src" / "test" / "scala",
libraryDependencies += "org.specs2" %%% "specs2-core" % Specs2Version % Test,
libraryDependencies += "org.scalameta" %%% "munit" % MUnitVersion % Test,
buildInfoPackage := "cats.effect",
buildInfoKeys ++= Seq(
"jsRunner" -> (tests.js / Compile / fastOptJS / artifactPath).value,
Expand Down Expand Up @@ -995,8 +997,7 @@ lazy val std = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.settings(
name := "cats-effect-std",
libraryDependencies ++= Seq(
"org.scalacheck" %%% "scalacheck" % ScalaCheckVersion % Test,
"org.specs2" %%% "specs2-scalacheck" % Specs2Version % Test
"org.scalameta" %%% "munit" % MUnitVersion % Test,
),
mimaBinaryIssueFilters ++= {
if (tlIsScala3.value) {
Expand Down
Loading
Loading