Skip to content

Commit

Permalink
Update munit to 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
47erbot authored Oct 21, 2024
1 parent 3278efc commit 6b56160
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
3 changes: 2 additions & 1 deletion microsite/src/main/docs/tutorials/testing-rpc-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ a property-based test with ScalaCheck to verify that the service's happiness
does not depend on the incoming request.

```scala mdoc:silent
import munit.catseffect.IOFixture
import munit.ScalaCheckSuite
import org.scalacheck.Gen
import org.scalacheck.Prop.*
Expand All @@ -162,7 +163,7 @@ class PropertyBasedServiceSpec extends CatsEffectSuite with ScalaCheckSuite with

val client = ResourceSuiteLocalFixture("client", clientResource)

override def munitFixtures: Seq[Fixture[_]] = List(client)
override def munitFixtures: Seq[IOFixture[_]] = List(client)

property("server is always happy") {
val c = client()
Expand Down
27 changes: 15 additions & 12 deletions project/ProjectPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import higherkindness.mu.rpc.srcgen.SrcGenPlugin.autoImport._
import _root_.io.github.davidgregory084.ScalacOptions
import _root_.io.github.davidgregory084.TpolecatPlugin.autoImport._

import scala.language.reflectiveCalls

object ProjectPlugin extends AutoPlugin {

override def trigger: PluginTrigger = allRequirements
Expand All @@ -30,8 +32,9 @@ object ProjectPlugin extends AutoPlugin {
val log4cats: String = "2.7.0"
val log4s: String = "1.10.0"
val logback: String = "1.5.11"
val munit: String = "0.7.29"
val munitCE: String = "1.0.7"
val munit: String = "1.0.2"
val munitSC: String = "1.0.0"
val munitCE: String = "2.0.0"
val natchez: String = "0.3.7"
val nettySSL: String = "2.0.61.Final"
val paradise: String = "2.1.1"
Expand Down Expand Up @@ -122,8 +125,8 @@ object ProjectPlugin extends AutoPlugin {
libraryDependencies ++= Seq(
"com.github.pureconfig" %% "pureconfig" % V.pureconfig,
"org.scalameta" %% "munit" % V.munit % Test,
"org.scalameta" %% "munit-scalacheck" % V.munit % Test,
"org.typelevel" %% "munit-cats-effect-3" % V.munitCE % Test,
"org.scalameta" %% "munit-scalacheck" % V.munitSC % Test,
"org.typelevel" %% "munit-cats-effect" % V.munitCE % Test,
"org.typelevel" %% "cats-effect-testkit" % V.catsEffect % Test
)
)
Expand Down Expand Up @@ -198,10 +201,10 @@ object ProjectPlugin extends AutoPlugin {

lazy val docsSettings: Seq[Def.Setting[_]] = Seq(
libraryDependencies ++= Seq(
"org.scalameta" %% "munit-scalacheck" % V.munit,
"org.typelevel" %% "munit-cats-effect-3" % V.munitCE,
"io.dropwizard.metrics" % "metrics-jmx" % V.dropwizard,
"org.tpolecat" %% "natchez-jaeger" % V.natchez
"org.scalameta" %% "munit-scalacheck" % V.munitSC,
"org.typelevel" %% "munit-cats-effect" % V.munitCE,
"io.dropwizard.metrics" % "metrics-jmx" % V.dropwizard,
"org.tpolecat" %% "natchez-jaeger" % V.natchez
),
scalacOptions ~= (_ filterNot Set(
"-Xfatal-warnings",
Expand All @@ -217,7 +220,7 @@ object ProjectPlugin extends AutoPlugin {
scalacOptions -= "-Xfatal-warnings",
libraryDependencies ++= Seq(
"io.grpc" % "grpc-core" % V.grpc,
"org.scalameta" %% "munit-scalacheck" % V.munit,
"org.scalameta" %% "munit-scalacheck" % V.munitSC,
"org.typelevel" %% "cats-effect" % V.catsEffect
)
)
Expand All @@ -232,8 +235,8 @@ object ProjectPlugin extends AutoPlugin {
"com.47deg" %% "scalacheck-toolbox-datetime" % V.scalacheckToolbox % Test,
"org.scala-lang.modules" %% "scala-collection-compat" % V.scalaCollectionCompat % Test,
"org.scalameta" %% "munit" % V.munit % Test,
"org.scalameta" %% "munit-scalacheck" % V.munit % Test,
"org.typelevel" %% "munit-cats-effect-3" % V.munitCE % Test,
"org.scalameta" %% "munit-scalacheck" % V.munitSC % Test,
"org.typelevel" %% "munit-cats-effect" % V.munitCE % Test,
"org.typelevel" %% "cats-effect-testkit" % V.catsEffect % Test,
"ch.qos.logback" % "logback-classic" % V.logback % Test,
"com.github.cb372" %% "cats-retry" % V.catsRetry % Test
Expand Down Expand Up @@ -310,7 +313,7 @@ object ProjectPlugin extends AutoPlugin {
missinglinkIgnoreSourcePackages += IgnoredPackage("io.netty.handler.ssl")
)

import autoImport._
import autoImport.*

override def projectSettings: Seq[Def.Setting[_]] =
Seq(
Expand Down

0 comments on commit 6b56160

Please sign in to comment.