Skip to main content

Weaver

Add the Difflicious sbt plugin to project/plugins.sbt:

addSbtPlugin("com.github.jatcwang" % "sbt-difflicious" % "0.7.0-M2")

Then add the Weaver integration to build.sbt:

"com.github.jatcwang" %% "difflicious-weaver" % "0.7.0-M2" % Test

and then extend WeaverDiffliciousSuite in your test suites and call assertNoDiff on any Differ.

import cats.effect.IO
import weaver.SimpleIOSuite
import difflicious.weaver.WeaverDiffliciousSuite
import difflicious.Differ

object MyTest extends SimpleIOSuite with WeaverDiffliciousSuite[IO] {
pureTest("a == b") {
Differ[Int].assertNoDiff(1, 2)
}
}

WeaverDiffliciousSuite writes diff reports for failed diffs, which you can explore using Diff Viewer UI / CLI.