serokell / o-clock

:hourglass: Type-safe time units in Haskell
Mozilla Public License 2.0
49 stars 6 forks source link

Drop tasty-hspec dependency #121

Closed gromakovsky closed 3 years ago

gromakovsky commented 3 years ago

Problem: we write some tests using hspec and then convert them to tasty trees using tasty-hspec. This conversion is not necessary, but causes extra dependencies to be added to one test-suite. Moreover, sometimes it's not 100% precise.

Solution: remove this dependency and group tests into trees ourselves. It doesn't add any overhead, we are just using a slightly different syntax. We don't transitively depend on hspec anymore, but we need hspec-expectations as a replacement to use things like shouldThrow.

Resolves #120