You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a number of places in the API where it would be good to add a String parameter to name something or add some context. Some quick examples from existing open issues:
I thought it would be useful to open an issue to kind of unify discussion around these ideas.
It would potentially be useful to go through the whole API and try to find the places where a string parameter seems to be wanted and try to design a consistent approach, rather than dealing with each request in an ad-hoc way.
Point 1. seems fairly easy to address, so I'll try to start collecting instances of that.
There are a number of places in the API where it would be good to add a String parameter to name something or add some context. Some quick examples from existing open issues:
eachHaving()Consider making the semantics ofextractingmore similar tohaving#533 (this is a name rather than more general context but it's the same basic idea)Truth.assertWithMessage()Feature Request: Add description tomatchesPredicateassertion #514, Add custom information to an assertion error message. #352all()andany()this issue commentIt seems like there are two main threads to these:
eachHaving()should have a name param to matchhaving())I thought it would be useful to open an issue to kind of unify discussion around these ideas.
It would potentially be useful to go through the whole API and try to find the places where a string parameter seems to be wanted and try to design a consistent approach, rather than dealing with each request in an ad-hoc way.
Point 1. seems fairly easy to address, so I'll try to start collecting instances of that.