feat(testing): improve error message quality in miden-testing#2251
Conversation
Updated error handling in execute_code function to use ExecError instead of ExecutionError.
Refactor error handling in tests to use 'anyhow' for better context management. Update function signatures to return 'anyhow::Result' instead of 'miette::Result'.
|
Also I have a question. Firstly, before pushing a pr I run these commands:
As I understood these are the necessary command to pass all the CI here in miden base, So the question is are these all the commands needed to be ran or is there anything else? |
|
Sorry, closed it accidentally |
I think |
|
Unfortunately, the merge conflicts weren't resolved correctly and CI isn't passing now. Please check locally with |
|
Seems like the CI is still not passing. @avorylli - is this something you can fix? |
…)-improve-error-message-quality-in-miden-testing
e637d19 to
e5abc22
Compare
PhilippGackstatter
left a comment
There was a problem hiding this comment.
Looks good to me!
I reverted to the commit I last reviewed which was already 99% there, merged next and made small adjustments.
Introduce
ExecErrornewtype wrapper aroundExecutionErrorthat usesPrintDiagnosticfor better error formatting.Changes:
ExecErrorwrapper with improved diagnosticsTransactionContext::execute_codeto returnExecErrormiette::Resultwithanyhow::Resultin tests.into_diagnostic()callsassert_execution_error!macro to handleExecErrorCloses #2040