You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This produces nice user-friendly diffs, even for large multi-line strings.
It would be great to publish it as a separate library so that it can be used with other testing frameworks. For instance, it could be used alongside weaver without needing to pull in the rest of munit:
libraryDependencies +=Seq(
"org.scalameta"%%"munit-diff"%"munit-version", // only pulls in the difflib"com.disneystreaming"%%"weaver-cats"%"weaver-version"// weaver as the actual framework
)
What do you think? If this is feasible, I'd be happy to make a PR to achieve it.
The text was updated successfully, but these errors were encountered:
Thanks for reporting! We've been actually thinking about it since, we do use it in a number of places including Metals and I think scalafmt (or we would want to use it for Scala Native support).
Munit's internal difflib is based on a myers diff algorithm to compare strings.
This produces nice user-friendly diffs, even for large multi-line strings.
It would be great to publish it as a separate library so that it can be used with other testing frameworks. For instance, it could be used alongside weaver without needing to pull in the rest of munit:
What do you think? If this is feasible, I'd be happy to make a PR to achieve it.
The text was updated successfully, but these errors were encountered: