Skip to content
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

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

Open
robstoll opened this issue Mar 2, 2022 · 0 comments
Open

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

robstoll opened this issue Mar 2, 2022 · 0 comments
Assignees
Milestone

Comments

@robstoll
Copy link
Owner

robstoll commented Mar 2, 2022

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 robstoll changed the title show only the first 10 mismatches for notToContain show only the first 5 mismatches for notToContain Mar 2, 2022
@robstoll robstoll changed the title show only the first 5 mismatches for notToContain show only the first 5 mismatches for notToContain/none and all Mar 2, 2022
@robstoll robstoll modified the milestones: 0.18.0, 0.19.0 Apr 9, 2022
@robstoll robstoll self-assigned this Apr 9, 2022
@robstoll robstoll modified the milestones: 0.19.0, 0.20.0 Dec 29, 2022
@robstoll robstoll modified the milestones: 1.1.0, 1.2.0 Oct 14, 2023
@robstoll robstoll modified the milestones: 1.2.0, 1.3.0 Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant