gregbrowndev / projects

1 stars 0 forks source link

Add Discipline contract tests #25

Open gregbrowndev opened 1 year ago

gregbrowndev commented 1 year ago

Using Discipline would allow us to define and test laws for typeclasses, such as a Repository typeclass. This means we can write the tests once and use them to test both the live and fake implementations.

Repository laws:

gregbrowndev commented 1 year ago

See guide: https://www.iteratorshq.com/blog/tagless-with-discipline-testing-scala-code-the-right-way/