You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2023/05/31 13:30:00 UTC
[jira] [Commented] (AVRO-3766) [Rust] Print fliendlier errors when test cases fail
[ https://issues.apache.org/jira/browse/AVRO-3766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17727963#comment-17727963 ]
ASF subversion and git services commented on AVRO-3766:
-------------------------------------------------------
Commit db391b8f7dff9cba4ae8b31e23dca2f0b3ec0d1d in avro's branch refs/heads/better-error-messages-in-tests from Martin Tzvetanov Grigorov
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=db391b8f7 ]
AVRO-3766: [Rust] Print fliendlier errors when test cases fail
https://bluxte.net/musings/2023/01/08/improving_failure_messages_rust_tests/
Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
> [Rust] Print fliendlier errors when test cases fail
> ---------------------------------------------------
>
> Key: AVRO-3766
> URL: https://issues.apache.org/jira/browse/AVRO-3766
> Project: Apache Avro
> Issue Type: Improvement
> Components: rust
> Reporter: Martin Tzvetanov Grigorov
> Assignee: Martin Tzvetanov Grigorov
> Priority: Minor
>
> [https://bluxte.net/musings/2023/01/08/improving_failure_messages_rust_tests/]
>
> The idea is to use #[track_caller] attribute on a method that panics immediately.
> This way the "useless" frames from the unwinding are not printed.
> An extra benefit is the removal of calls to Result::unwrap() in the tests.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)