-
Notifications
You must be signed in to change notification settings - Fork 63
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
Store dependencies in CradleError #186
Conversation
This allows you to attempt to rerun a failed cradle if any of the dependencies change. It is not a very precise measure of why a cradle failed but better than nothing.
583c0cc
to
31b45f5
Compare
87c41f7
to
81b54b6
Compare
81b54b6
to
fdcc2af
Compare
@@ -183,6 +194,8 @@ test-suite bios-tests | |||
extra, | |||
tasty, | |||
tasty-hunit, | |||
tasty-expected-failure, | |||
hspec-expectations, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error message isnt as nice yet as I hoped. We probably need to adapt the runner a bit.
Currently, the error message in a test-case failure looks like this (pretty formatted):
HUnitFailure
(Just
SrcLoc
{ srcLocPackage = "main"
, srcLocModule = "Main"
, srcLocFile = "tests/BiosTests.hs"
, srcLocStartLine = 150
, srcLocStartCol = 37
, srcLocEndLine = 150
, srcLocEndCol = 84
})
(Reason "Cradle loaded successfully")
CradleFail err -> | ||
pure $ CradleFail | ||
(err { cradleErrorDependencies = cradleErrorDependencies err `union` deps }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This had to be added
This allows you to attempt to rerun a failed cradle if any of the
dependencies change. It is not a very precise measure of why a cradle
failed but better than nothing.
Situations where this helps:
hie.yaml
Situations where it doesn't help: