Skip to content

Hide traceback and verbose otter output to only show assertion message instead #419

@joelostblom

Description

@joelostblom

Is it possible to hide the traceback of the tests and just show the message from the assertion of the test that failed? Showing all this output to students will likely be quite confusing and it also allows them to see exactly what is tested which to me is less desired than just showing the assertion message with a hint of what is wrong. This is a bigger problem when there are multiple assertions in the same cell.

image

I have seen the fail_message option in the question metadata, but it does not suppress the traceback and requires manually inputting the same string that is already in my assertion message so it is not ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions