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

Cleanup after each test #1

Open
mwbrooks opened this issue Feb 19, 2011 · 2 comments
Open

Cleanup after each test #1

mwbrooks opened this issue Feb 19, 2011 · 2 comments

Comments

@mwbrooks
Copy link
Owner

Each test should have a chance to clean up.

For example, jQTouch can reset the history.

@jzaefferer
Copy link

Consider using module(name, { setup: function() {}, teardown: function() {} ) for that. Could be enough to show an example how to combine that with dominator tests.

@mwbrooks
Copy link
Owner Author

Good point. Originally I was thinking of adding it to dominator.destroy().

I suppose it's a questions of: should Dominator clean up after each chained sequence of assertions or after each QUnit test.

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