Closed erewok closed 6 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?
@erewok You have to likely change the relevant yaml files and update the extra-deps
section with the updated package.
@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.
@erewok thanks a lot again!
Description
show
toerr
in order to convert fromFailureReason
-> String.safeEvaluateExample
in order to capture failure output and make assertions about it.Fixes #27 .
Notes
Fail
constructor toFailure
and the constructor takes aFailureReason
:Failure (Maybe Location) FailureReason