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

Update munit to 1.0.3 #445

Merged
merged 4 commits into from
Dec 27, 2024
Merged
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
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ ThisBuild / tlMimaPreviousVersions ++= Set(
val Versions = new {
val circe = "0.14.10"
val config = "1.4.3"
val munit = "0.7.29"
val disciplineMunit = "1.0.9"
val munitCatsEffect = "1.0.7"
val munit = "1.0.3"
val disciplineMunit = "2.0.0"
val munitCatsEffect = "2.0.0"
}

lazy val root = tlCrossRootProject.aggregate(config)
Expand All @@ -47,7 +47,7 @@ lazy val config = project
"io.circe" %% "circe-testing" % Versions.circe % Test,
"org.scalameta" %% "munit" % Versions.munit % Test,
"org.typelevel" %% "discipline-munit" % Versions.disciplineMunit % Test,
"org.typelevel" %% "munit-cats-effect-3" % Versions.munitCatsEffect % Test
"org.typelevel" %% "munit-cats-effect" % Versions.munitCatsEffect % Test
),
tlVersionIntroduced := Map(
"2.12" -> "0.3.0",
Expand Down
6 changes: 4 additions & 2 deletions config/src/test/scala-2/io.circe.config/CirceConfigSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ class CirceConfigSpec extends CatsEffectSuite {

test("printer should print it into a config string") {
val Right(json) = parser.parse(AppConfig)
val printed = io.circe.config.printer.print(json)
val expected = readFile("CirceConfigSpec.printed.conf")
assertEquals(printer.print(json), expected)
assertEquals(printed, expected)
}

test("syntax should provide Config decoder") {
Expand All @@ -109,7 +110,8 @@ class CirceConfigSpec extends CatsEffectSuite {
test("round-trip should parse and print") {
for (file <- testResourcesDir.listFiles) {
val Right(json) = parser.parseFile(file)
assertEquals(parser.parse(printer.print(json)), Right(json), s"round-trip failed for ${file.getName}")
val printed = io.circe.config.printer.print(json)
assertEquals(parser.parse(printed), Right(json), s"round-trip failed for ${file.getName}")
}
}
}
Expand Down
7 changes: 4 additions & 3 deletions config/src/test/scala-3/io.circe.config/CirceConfigSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ package io.circe.config
import cats.effect.IO
import com.typesafe.config.{parser as _, *}
import io.circe.config.syntax.*
import io.circe.syntax.*
import io.circe.{parser as _, *}
import munit.CatsEffectSuite

Expand Down Expand Up @@ -86,8 +85,9 @@ class CirceConfigSpec extends CatsEffectSuite {

test("printer should print it into a config string") {
val Right(json) = parser.parse(AppConfig)
val printed = io.circe.config.printer.print(json)
val expected = readFile("CirceConfigSpec.printed.conf")
assertEquals(printer.print(json), expected)
assertEquals(printed, expected)
}

test("syntax should provide Config decoder") {
Expand All @@ -109,7 +109,8 @@ class CirceConfigSpec extends CatsEffectSuite {
test("round-trip should parse and print") {
for (file <- testResourcesDir.listFiles) {
val Right(json) = parser.parseFile(file)
assertEquals(parser.parse(printer.print(json)), Right(json), s"round-trip failed for ${file.getName}")
val printed = io.circe.config.printer.print(json)
assertEquals(parser.parse(printed), Right(json), s"round-trip failed for ${file.getName}")
}
}
}
Expand Down
Loading