haskell-servant / servant-quickcheck

40 stars 21 forks source link

Upgrade hspec to 2.4.4 and use safeEvaluateExample for tests #29

Closed erewok closed 6 years ago

erewok commented 7 years ago

Description

Fixes #27 .

Notes

erewok commented 7 years ago

Build failures in Travis are due to stack-lts-6 and stack-lts-7. Is there a clean way of supporting multiple versions of a library (hspec, in this case) for these tests and do want to try to do that?

psibi commented 7 years ago

@erewok You have to likely change the relevant yaml files and update the extra-deps section with the updated package.

erewok commented 7 years ago

@psibi I did try that, but hspec>=2.4 is not available in the package sets for lts-6 and the changes in 2.4 are breaking changes. In particular, they renamed a constructor used in the tests for this project.

The relevant code is in tests for this project, so in order to continue supporting lts-6, lts-7, and lts-8, we'd have to have different versions of hspec and related dependencies installed and then check for versions and write different test code depending on the installed version.

jkarni commented 6 years ago

@erewok thanks a lot again!