Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this work with ScalaTest? #15

Open
i-am-the-slime opened this issue Dec 12, 2024 · 1 comment
Open

Does this work with ScalaTest? #15

i-am-the-slime opened this issue Dec 12, 2024 · 1 comment

Comments

@i-am-the-slime
Copy link

There seems only to be integration with MUnit, is this correct?

@keynmol
Copy link
Contributor

keynmol commented Dec 12, 2024

Only MUnit yes, but that's mostly down to what I use – I'd be open to having a scalatest integration, it will basically amount to writing a file like this https://github.com/indoorvivants/snapshot-testing/blob/main/modules/snapshots-buildtime/src/main/resources/MunitSnapshotsIntegration.scala#L24-L45 that makes sense for

  1. the styles of testing available in scalatest
  2. the available assertions in scalatest

As a side note, this project started roughly at the same time as snapshots4s (without my knowledge), so if you think it fits your needs, check out its scalatest integration: https://siriusxm.github.io/snapshot4s/supported-frameworks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants