Skip to content

Discussion for context/name String parameters #535

Open
@grodin

Description

@grodin

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:

It seems like there are two main threads to these:

  1. API consistency (e.g. eachHaving() should have a name param to match having())
  2. Adding context to assertions (e.g. Naming a failure #526, )

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions