Skip to content
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
4 changes: 2 additions & 2 deletions .github/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ import org.http4s._

class MySuite extends munit.Http4sSuite {

override def http4sMUnitClientFixture =
HttpRoutes.of[IO](_ => Ok("""{"id": 1, "name": "Jose"}""")).orFail.asFixture
override def http4sMUnitClientFixture =
HttpRoutes.of[IO] { case _ => Ok("""{"id": 1, "name": "Jose"}""") }.orFail.asFixture

test(GET(uri"users"))(response => assertEquals(response.status.code, 204))

Expand Down
13 changes: 0 additions & 13 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ThisBuild / scalaVersion := "2.13.18"
ThisBuild / crossScalaVersions := Seq("2.12.21", "2.13.18", "3.3.7")
ThisBuild / versionPolicyIntention := Compatibility.None

ThisBuild / organization := "com.alejandrohdezma"
Expand All @@ -11,20 +9,9 @@ addCommandAlias("ci-publish", "versionCheck; github; ci-release")
lazy val documentation = project
.enablePlugins(MdocPlugin)
.dependsOn(`http4s-munit` % "compile->test")
.settings(libraryDependencies += "org.http4s" %% "http4s-blaze-client" % "0.23.17")

lazy val `http4s-munit` = module
.settings(Test / fork := true)
.settings(libraryDependencies += "org.scalameta" %% "munit" % "1.0.4")
.settings(libraryDependencies += "org.http4s" %% "http4s-client" % "0.23.33")
.settings(libraryDependencies += "org.http4s" %% "http4s-dsl" % "0.23.33")
.settings(libraryDependencies += "org.http4s" %% "http4s-ember-client" % "0.23.33" % Optional)
.settings(libraryDependencies += "org.typelevel" %% "munit-cats-effect" % "2.1.0")
.settings(libraryDependencies += "io.circe" %% "circe-parser" % "0.14.15")
.settings(libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.5.26" % Test)
.settings(libraryDependencies += "org.http4s" %% "http4s-circe" % "0.23.33" % Test)
.settings(libraryDependencies += "com.dimafeng" %% "testcontainers-scala-munit" % "0.41.8" % Test)
.settings(libraryDependencies += "org.http4s" %% "http4s-ember-client" % "0.23.33" % Test)
.settings(libraryDependencies ++= scalaVersion.value.on(2)(kindProjector))

def kindProjector = compilerPlugin("org.typelevel" % "kind-projector" % "0.13.4").cross(CrossVersion.full)

This file was deleted.

76 changes: 0 additions & 76 deletions modules/http4s-munit/src/test/scala/munit/HttpSuiteSuite.scala

This file was deleted.

12 changes: 6 additions & 6 deletions modules/http4s-munit/src/test/scala/munit/LogsSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ class LogsSuite extends FunSuite {
|values are not the same
|=> Obtained
|200
|=> Diff (- obtained, + expected)
|-200
|+204
|=> Diff (- expected, + obtained)
|-204
|+200
|
|Response body was:
|
Expand All @@ -89,9 +89,9 @@ class LogsSuite extends FunSuite {
|}
|=> Obtained
|200
|=> Diff (- obtained, + expected)
|-200
|+204
|=> Diff (- expected, + obtained)
|-204
|+200
|""".stripMargin

assertNoDiff(obtained, expected)
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.10.11
sbt.version=1.12.9
20 changes: 20 additions & 0 deletions project/dependencies.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
sbt-build {
scala-versions = ["~2.12.21", "~2.13.18", "~3.3.7"]
dependencies = []
}

documentation = [
"org.http4s::http4s-blaze-client:0.23.17"
]

http4s-munit = [
"io.circe::circe-parser:0.14.15"
"org.http4s::http4s-client:0.23.34"
"org.http4s::http4s-dsl:0.23.34"
"org.scalameta::munit:1.3.0"
"org.typelevel::munit-cats-effect:2.2.0"
"ch.qos.logback:logback-classic:1.5.32:test"
"com.dimafeng::testcontainers-scala-munit:0.44.1:test"
"org.http4s::http4s-circe:0.23.34:test"
"org.http4s::http4s-ember-client:0.23.34:test"
]
1 change: 1 addition & 0 deletions project/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("com.alejandrohdezma" % "sbt-dependencies" % "0.21.0")
Loading