You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2023/05/31 14:59:00 UTC

[jira] [Updated] (AVRO-3766) [Rust] Print friendlier errors when test cases fail

     [ https://issues.apache.org/jira/browse/AVRO-3766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Tzvetanov Grigorov updated AVRO-3766:
--------------------------------------------
    Summary: [Rust] Print friendlier errors when test cases fail  (was: [Rust] Print fliendlier errors when test cases fail)

> [Rust] Print friendlier 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
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> [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)