-
Notifications
You must be signed in to change notification settings - Fork 36
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
Client-side unit testing? #457
Comments
Partial/in-progress list of client-side unit tests that would be useful to have at some point:
|
I think we should start implementing UI testing as we convert our Backbone views to React components. With the React API, we should be able to test the cases enumerated above. React components also have an API that's suitable for snapshot testing as well, using a tool like Jest. Note that we should still implement classic assertion-based tests, using React state/props, which Jest provides as well. Here are some resources about Jest snapshot testing and how it can help us:
Assuming that we continue with Jest, I think we should have the following goals:
Just to be clear, here are some non-goals:
Note that testing will be easiest to implement after merging our Place Detail and Place Form branches for the React port, since those branches are making significant updates to our React code. If we want to get started sooner, we can probably start bringing in testing by basing our branch off of the |
The API has a lot of unit tests, but I noticed that the client has a few in place as well.
Have we ever tried running these tests? They seem kind of spare. Maybe we could expand on them? I think it would be nice to have tests for the dynamic form and multi datasets, and maybe tests for the way we handle layers and for the list view. Anything else?
The text was updated successfully, but these errors were encountered: