Put test assertion errors on multiple lines #2755
Labels
Priority 4: Would
Lowest priority. Would-be-nice to include issues when time allows it.
Status: Resolved
Use to signal that work on this issue is done.
Type: Enhancement
Use to signal an issue enhances an already existing feature of the project.
Milestone
Enhancement Description
Put test failure messages (at least org.axonframework.test.AxonAssertionError, but there's probably more: search the codebase for "but got") on separate lines. This doesn't really matter for something simple like an integer, but when it starts printing events with half a dozen or so fields, this would make it much easier to debug.
This happens at least when something is failing in AggregateTestFixture's
expectEvents
method. Maybe some of the places the above search query returns don't need this, and maybe there's other places, but I'm fine with incremental improvements.Current/Wanted behaviour examples are adapted from a real test I was working on, just the field names and contents have been scrubbed a bit.
Current Behaviour
Wanted Behaviour
Notice how it's immediately and trivially clear that
description
is the first field it's failing on.Possible Workarounds
Copy pasting the test output into an editor and adding a newline manually (this is what I currently do)
The text was updated successfully, but these errors were encountered: