Skip to content

TestResult does not display the whole error #370

Closed

Description

@Kriskras99

Failed test with TestError:

    Backtrace omitted. Run with RUST_BACKTRACE=1 to display it.
    Run with RUST_BACKTRACE=full to include source snippets.

    The application panicked (crashed).
      apache_avro::error::Error: Failed to parse schema from JSON
    in avro/src/schema.rs, line 7418
    thread: schema::tests::avro_rs_339_schema_ref_uuid

Failed test with unwrap():

    Backtrace omitted. Run with RUST_BACKTRACE=1 to display it.
    Run with RUST_BACKTRACE=full to include source snippets.

    The application panicked (crashed).
      called `Result::unwrap()` on an `Err` value: Error { details: Failed to parse schema from JSON: expected `,` or `}` at line 11 column 25 }
    in avro/src/schema.rs, line 7436
    thread: schema::tests::avro_rs_339_schema_ref_uuid

I think this is because TestError uses the Display trait instead of the Debug trait when printing errors.

Activity

  1. added a commit that references this issue on Jan 8, 2026
    c7c3ce2
  2. added a commit that references this issue on Jan 8, 2026
    1d2ba7c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions