Skip to content

Commit

Permalink
Merge pull request #37 from http4s/scalacheck-xml
Browse files Browse the repository at this point in the history
Use scalacheck-xml generators
  • Loading branch information
rossabaker authored Jun 22, 2022
2 parents d24263d + 2ca5ca1 commit f1ae2fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 476 deletions.
5 changes: 4 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ThisBuild / tlSkipIrrelevantScalas := true
lazy val root = project.in(file(".")).aggregate(scalaXml2, scalaXml1).enablePlugins(NoPublishPlugin)

val http4sVersion = "0.23.12"
val scalacheckXmlVersion = "0.1.0"
val scalaXml1Version = "1.3.0"
val scalaXml2Version = "2.1.0"
val munitVersion = "0.7.29"
Expand All @@ -36,6 +37,7 @@ lazy val scalaXml1 = project
tlMimaPreviousVersions ++= Set("0.23.0"),
crossScalaVersions := Seq(Scala212, Scala213),
libraryDependencies += "org.scala-lang.modules" %%% "scala-xml" % scalaXml1Version,
dependencyOverrides += "org.scala-lang.modules" %%% "scala-xml" % scalaXml1Version,
commonSettings,
)

Expand All @@ -44,9 +46,10 @@ lazy val commonSettings = Seq(
Test / unmanagedSourceDirectories += (LocalRootProject / baseDirectory).value / "scala-xml" / "src" / "test" / "scala",
libraryDependencies ++= Seq(
"org.http4s" %%% "http4s-core" % http4sVersion,
"org.http4s" %%% "http4s-laws" % http4sVersion % Test,
"org.scalameta" %%% "munit-scalacheck" % munitVersion % Test,
"org.typelevel" %%% "munit-cats-effect-3" % munitCatsEffectVersion % Test,
"org.http4s" %%% "http4s-laws" % http4sVersion % Test,
"org.typelevel" %%% "scalacheck-xml" % scalacheckXmlVersion % Test,
),
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ import munit.ScalaCheckEffectSuite
import org.http4s.Status.Ok
import org.http4s.headers.`Content-Type`
import org.http4s.laws.discipline.arbitrary._
import org.http4s.scalaxml.generators._
import org.scalacheck.Prop._
import org.scalacheck.effect.PropF._
import org.typelevel.ci._
import org.typelevel.scalacheck.xml.generators._

import java.nio.charset.StandardCharsets
import scala.xml.Elem
Expand Down
Loading

0 comments on commit f1ae2fc

Please sign in to comment.