Skip to content

Specific User-Defined Error Messages on Test Case Failure #29

@Jmdwow

Description

@Jmdwow

Is your feature request related to a problem? Please describe.
When a test case fails currently, the reason for the assertion failure is printed in full, along with other potentially confusing information for students.

Describe the solution you'd like
It would be great to have a way to specify an error message for each assert, and have that error message be the only thing that gets output if the assert fails.

Describe alternatives you've considered
A function-wide error message decorator could work, but would lack the nuance of being able to give the student what their output was, or having different messages for asserts for different incorrect outputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions