Skip to content

[Feature]: Add reason string to end of error message #4085

@DaRosenberg

Description

@DaRosenberg

Problem Statement

It's frustrating having to expand the test output to see the reason string provided in the .Because() method.

Proposed Solution

I would like TUnit to append the reason string to the end of the assertion error message:

Image

Also, would be nice to have .Because() documented — maybe I am abusing it, or there is another mechanism I should be using?

Alternatives Considered

No response

Feature Category

Test Output / Reporting

How important is this feature to you?

Nice to have - would improve my experience

Additional Context

No response

Contribution

  • I'm willing to submit a pull request for this feature

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions