-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Building better descriptions with when
and while
contexts in addition to with
#9
Comments
I copied I've been using
It feels like maybe with and when are similar, e.g.
Since |
i.e. it would be nice if we could capture semantic value with the
I think we want to avoid getting too specific for one use case, but this is a reasonably common pattern. |
I ended up removing I'm still open to having a specific clause for methods. What I currently write is It's also a little tricky because sometimes you want to write I'm open to ideas but I'd like to keep the set of concepts as small as possible. |
I’d like my test description to say something like this and I’m struggling to fit it into the
describe
/with
blocks:I think we could achieve this by adding a
when
context method in addition towith
.I think we should consider adding
while
while we're at it. For example, we might want a test that's described:The text was updated successfully, but these errors were encountered: