-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Discussion on jasmine test organization and abstractions #529
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
Comments
I find the biggest drain in writing tests to be the boilerplate and ensuring that there's no leaks or side affects from test to test - often I'll find myself debugging tests that pass individually but not when run together. I'm not sure the best way to go about improving this, or if we really can do much other than improving upon the "standard" way of setting up/tearing down each test. Perhaps if we take some time to look through existing tests and seek out the most commonly recurring patterns, and create a small stdTestLib including the things we always use (create/destroy the |
Here's an attempt that we decided not to use for now, and it would benefit from lots of constructive criticism even if we were to use test utilities that are heavier than Use: gl_plot_interact_basic_test Backstage: Notes, so as we remember considerations that went into it:
The docs in the source code overlap with the above. Also, as it's a first iteration, there may be shortcomings relative to the above aims, despite having tested tests, and there may be technical weaknesses besides the issue that it's a much heavier abstraction than |
Just noticed this ticket again. This ticket never turned into a serious discussion that could possible lead to changes in our test suites. Closing. |
@mdtusz @mdtusz
Our jasmine test suites are grown a lot in the past few months. We should spend some time discussing ways to make writing jasmine tests easier.
The text was updated successfully, but these errors were encountered: