passsy / spot

Chainable powerful Flutter widget selector API, screenshots and assertions for awesome widget tests.
https://pub.dev/packages/spot
Apache License 2.0
63 stars 2 forks source link

Enhance Error Handling of all(), any() #44

Open coderabbitai[bot] opened 9 months ago

coderabbitai[bot] commented 9 months ago

An issue has been identified in the and methods within the class, where the error handling and messaging could be improved to provide more detailed information about failed conditions when no widgets fulfill the provided matcher.

This enhancement request was raised during the review of Pull Request #43 (https://github.com/passsy/spot/pull/43), specifically in the context of a discussion on improving the method's error messaging (https://github.com/passsy/spot/pull/43#discussion_r1478553681).

The goal is to make the error messages more informative and helpful for developers by including details about the failed conditions, thereby facilitating easier debugging and a better understanding of why a test might have failed.

Requested by @passsy.