-
Notifications
You must be signed in to change notification settings - Fork 721
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
Golden tests for cardano-api
errors
#5188
Conversation
0d1960e
to
17c18a8
Compare
-- { Qry.pastHorizonCallStack = GHC.callStack | ||
-- , Qry.pastHorizonExpression = error "" -- Some $ Qry.ClosedExpr $ Qry.ELit 0 | ||
-- , Qry.pastHorizonSummary = [] | ||
-- } |
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.
Need some way to construct a constant PastHorizonException
value.
1e6b652
to
5f1b788
Compare
@@ -5,6 +5,13 @@ | |||
|
|||
### Features | |||
|
|||
- New error exports: |
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 exports?
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.
We need to be able to construct errors in order to test how they display.
5f1b788
to
e933b5d
Compare
e933b5d
to
3b98748
Compare
ee30868
to
c6429f3
Compare
Description
Add golden tests for API errors.
By maintaining a set of golden test files for our error message output, we gain the ability to have a technical writer review our error messages to ensure they are optimal and allow us to refactor the way we generate error messages to minimise risk and ensure progress (vs regression).
Checklist
See Runnings tests for more details
CHANGELOG.md
for affected package.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7
Note on CI
If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.