Skip to content
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

Real before_each and after_each #8

Closed
mackwic opened this issue Jul 23, 2016 · 1 comment
Closed

Real before_each and after_each #8

mackwic opened this issue Jul 23, 2016 · 1 comment

Comments

@mackwic
Copy link
Member

mackwic commented Jul 23, 2016

Currently, our before and after hooks doesn't traverse the tree to the children, that is, a before will be executed once for any context child, would it be an example or an example group. The examples inside the example group would then have only one execution of the hook, which is awkward.

As before_each is necessarily FnMut, I don't know how to put it in the runner and respect the aliasing rules. I tried many times in many ways, and I had to resign.

Help wanted, please contact me if the topic interest you.

@mackwic mackwic changed the title Implementing before_each and after_each Real before_each and after_each Jul 23, 2016
@regexident
Copy link
Collaborator

Implemented in #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants