atrium icon indicating copy to clipboard operation
atrium copied to clipboard

show only the first 5 mismatches for notToContain/none and all

Open robstoll opened this issue 3 years ago • 5 comments

Platform (all, jvm, js): all Extension (none, kotlin 1.3): none

Code related feature

expect((1..100).toList()).notToContain.entry { toBeGreaterThan(2) }

The output will show all elements from 3 to 100 which is way too verbose. Similar to the showOnlyFailing option for toContain.inOrder.only we should introduce NotToContainReportingOptions which allows to setMaxNumberOfMismatches which defaults to 5

robstoll avatar Mar 02 '22 20:03 robstoll

hey, i am pretty new with opensource and for a school project i have to work on an opensource project. i am curious if this issue is still open and if so, i can work on it?

WesleyJammer avatar Feb 12 '25 12:02 WesleyJammer

@WesleyJammer I already started this one but there are other issues you could work on. have a look at good first issues. You could for instance work on https://github.com/robstoll/atrium/issues/1887 Let me know in case you need help or prefer something different, I am sure we can find something.

robstoll avatar Feb 12 '25 13:02 robstoll

@robstoll thanks for the reply! I will look at issue #1887 and discus with my teacher if this issue fits the assignment.

WesleyJammer avatar Feb 14 '25 09:02 WesleyJammer

@robstoll is it mabye an option if i take #1364 ?

WesleyJammer avatar Feb 14 '25 14:02 WesleyJammer

This won't be an easy one. you will have to base your work on a feature branch and do part of the on-going migration. Fixing the bug should then be relatively easy. Write in the other issue if you are still motivated (this way I can assign the task to you). Alternatively, look at the following issues: https://github.com/robstoll/atrium/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22help%20wanted%22

robstoll avatar Feb 14 '25 16:02 robstoll