Skip to content

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

@robstoll

Description

@robstoll

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions