-
Notifications
You must be signed in to change notification settings - Fork 25
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
run/async commands #53
Comments
draft in 481a5be, asnyc not yet commited |
@rylnd any remark, idea, suggestion about this? :) |
It would be helpful to see some examples for this feature, I'm not really understanding the use case. |
The point is to say explicitely that you are calling some function. This is mainly for test readability purposes. If I take the following test:
I would rewrite it this way:
We could and maybe should the same to replace Following discussion #57 , what it enable us, is not to execute the code on some condition. (for instance, the |
I like that this would solve the problem I mentioned here, but there are some issues:
Making the user do extra work seems wrong. I want shpec to do that stuff under the hood. I've been going back and forth about how and when to implement encapsulated tests: most of the outstanding issues are centered around that concept. I believe that #16 is a better solution to the side-effect issue, if we can make it work. @AdrieanKhisbe please let me know if there are other benefits to this feature that I've overlooked. |
the fact is that don't see how we could do thing instead of the user if he does not give us the end by calling a function we control. by doing so we could then (by creating the appropriate logic in the I see it in the same way that Beside that would push the user to write function instead of putting a
replace it with
|
I replemented this based on posix merge. You can have a look on my branch https://github.com/AdrieanKhisbe/shpec/tree/features/improved-dsl while doing It had some idea:
I also made a @rylnd @hlangeveld @locochris, feedback welcome :) |
@AdrieanKhisbe could you open up a PR for that branch and reference this issue? It's much easier to review and discuss the code that way. |
syntactic visual suggar for command to be run synchronoulsy, or asynchronously
The text was updated successfully, but these errors were encountered: