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

pass server, client to before/afterEach Mocha hooks #60

Open
kschzt opened this issue Oct 7, 2013 · 1 comment
Open

pass server, client to before/afterEach Mocha hooks #60

kschzt opened this issue Oct 7, 2013 · 1 comment

Comments

@kschzt
Copy link

kschzt commented Oct 7, 2013

Hi,

Would be great to do some repetitive startup/shutdown logic (like creating a user and logging in) in the hooks before/after running the actual tests. It would make the test code a lot cleaner too.

Could we pass the server and clients to these functions as well? Is the environment already running at that point?

Thanks.

@apendua
Copy link
Collaborator

apendua commented May 20, 2014

@kschzt Please see #121

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

No branches or pull requests

2 participants