Skip to content

Releases: pureharm/pureharm-testkit

0.4.0

02 Aug 06:17
2cc2310
Compare
Choose a tag to compare

This is the first release for a stable Scala 3 version, and with cats-effect 3 support!

⚠️ breaking

  • pureharm-testkit now depends on cats-effect 3.2.1, and the corresponding dependencies for it.
  • pureharm-testkit-ce2 is binary, and source compatible with pureharm-testkit from version 0.3.0, so if you haven't migrated to CE3 yet, use the former module.

Dependency upgrades

New Scala versions:

  • 2.13.6
  • 3.0.1 for JVM + JS platforms
  • drop 3.0.0-RC2, 3.0.0-RC3

internals

  • bump scalafmt to 3.0.0-RC6 — from 2.7.5
  • bump sbt to 1.5.5
  • bump sbt-spiewak to 0.21.0
  • bump sbt-scalafmt to 2.4.3
  • bump sbt-scalajs-crossproject to 1.1.0
  • bump sbt-scalajs to 1.6.0

0.3.0

10 Apr 06:54
1a86e64
Compare
Choose a tag to compare

Dependency upgrades

0.2.0 - a.k.a out with scalatest, in with munit

02 Apr 07:59
450223a
Compare
Choose a tag to compare

⚠️ Breaking changes ⚠️

  • replace scalatest w/ munit 0.7.23. Do not forget to add testFrameworks += new TestFramework("munit.Framework") to your build, as per usage instructions

Deprecations

  • PureharmTestWithResource. You can just use the munit style within the PureharmTest. Simply do:
final class AlternativeToTestWithResource extends busymachines.pureharm.testkit.PureharmTestkit {
  private val myResource =
    ResourceFixture((to: TestOptions) => Resource.eval(testLogger.info(s"Making: $to") >> Timer[IO].sleep(10.millis)))

  myResource.test("with resource")((_: Unit) => testLogger.info("Executing test w/ resource"))
}

New Scala versions:

  • 3.0.0-RC1 for JS platform
  • 3.0.0-RC2, for JVM, and JS platform

Dependency upgrades:

0.1.0

19 Mar 12:55
025084c
Compare
Choose a tag to compare

Split out from pureharm as of version 0.0.7.

  • cross-compile to Scala 2.13, and 3.0.0-RC1

⚠️ Breaking changes ⚠️

  • due to future plans to support scalajs, dependency on org.typelevel %% "log4cats-slf4j" was removed. And TestLogger now has to be provided in client code.