-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"following elements were mismatched" hides the reason for the failure #1359
Comments
As mentioned in the duplicated issue #1360 this closely relates to #724 and I think we should also provide a report option which allows to define if we show also successful expectations or not. |
I guess that is yet another issue, and I think it would be worth having per-assertionCreator option to show expectations that hold. |
Yet another thing for When the actual list has one element only, then there's no much sense in printing "were require all the following assertions", and "by the way, here's an element that failed some of them" separately. |
that's covered in #1342
I agree, not sure yet how we want to show it in reporting though. I would still like to show that one used |
Affected Version
0.18.0
API
fluent-en_GB
Platform
jvm
Kotlin Version
1.8
How to reproduce the problem?
=>
Describe the bug
The output prints mismatched records, however, it does not report which expectations failed.
I see how printing all (failed or not) expectations for every element might produce a lot of output, so I would suggest that "following elements were mismatched" should hide the first level of successful expectations.
The following would be better:
Expected behaviour
I would expect to see which expectations failed for every entry that fails.
If I rewrite the same test with at for loop, then it produces better reports:
=>
The text was updated successfully, but these errors were encountered: