-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Implementation of beforeAll/afterAll #4239
Comments
Comment by peterflynn Nice! One quick comment: "before/afterAll()" sound easily confusable with "before/afterEach()" to me. What about "beforeFirst()" and "afterLast()"? |
Comment by TomMalbran "beforeFirst()" and "afterLast()" sound better. I went with "before/afterAll()" because I looked like the names jasmine could use to name the APIs, but it doesn't seem that they will add this functions to jasmine, so we could go with different names. |
Comment by jasonsanjose Reviewing |
Comment by jasonsanjose Initial review complete. I agree with |
Comment by TomMalbran
One think to notice is that when to chained suites have before or after all functions, the child suite functions will be called first, since we iterate from the spec parent to i'ts parents. Maybe this behavior could be reversed for the before first functions, having the outer most being called first and inner after. |
Comment by jasonsanjose
|
Issue by TomMalbran
Friday Jul 26, 2013 at 00:30 GMT
Originally opened as adobe/brackets#4581
This pull request adds the functions
beforeAll
andafterAll
to be used inside any test suite. With these functions we can better create a test window for a complete test suite and close it at the end. Hopefully, if jasmine finally implements them, we won't need to rewrite anything besides removing the additional code added on this PR.I then updated the test suites that used a single window for all the tests to use this new functions.
TomMalbran included the following code: https://github.com/adobe/brackets/pull/4581/commits
The text was updated successfully, but these errors were encountered: